Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

path

JSR npm

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.

About

Path class for JavaScript.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages