Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
dsherret/pathWorks with
•JSR Score100%•This package works with Node.js, Deno, Bun


License
•MIT
Downloads4,712/wk
•Published4 weeks ago (0.3.4)
Path class for JavaScript built on top of Deno's standard library.
path
Path class for JavaScript.
Setup
# jsr deno add jsr:@david/path # npm npm install @dsherret/path
Example
import { path } from "@david/path"; const srcDir = path("src"); console.log(srcDir.existsSync()); const dataFile = srcDir.join("data.txt"); dataFile.writeTextSync("Hello there!");
Alternatively you can construct the Path class directly:
import { Path } from "@david/path"; const srcDir = new Path("src");
Road to 1.0
I would like to stabilize this, but first I want to get more feedback on it.
Built and signed on
GitHub Actions
Add Package
deno add jsr:@david/path
Import symbol
import * as path from "@david/path";
Import directly with a jsr specifier
import * as path from "jsr:@david/path@^0.3.4";