Path class for JavaScript.
# jsr
deno add jsr:@david/path
# npm
npm install @dsherret/pathimport { 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");I would like to stabilize this, but first I want to get more feedback on it.