@dsherret/path
v0.3.3
Published
Path class for JavaScript.
Maintainers
Readme
@david/path
Path class for JavaScript.
Setup
# jsr
deno add jsr:@david/path
# npm
npm install @dsherret/pathExample
import { path } from "@dsherret/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 "@dsherret/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.
