Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dsherret/path

Path class for JavaScript built on top of Deno's standard library.
https://github.com/dsherret/path

Last synced: 3 months ago
JSON representation

Path class for JavaScript built on top of Deno's standard library.

Awesome Lists containing this project

README

        

# @david/path

[![JSR](https://jsr.io/badges/@david/path)](https://jsr.io/@david/path)

Path class for JavaScript built on top of [@std/path](https://jsr.io/@std/path)
and [@std/fs](https://jsr.io/@std/fs).

- [Docs](https://jsr.io/@david/path/doc/~/Path)

## Setup

```
deno add @david/path
```

## Example

```ts
import { Path } from "@david/path";

const srcDir = new Path("src");

console.log(srcDir.existsSync());

const dataFile = srcDir.join("data.txt");
dataFile.writeTextSync("Hello there!");
```

## Road to 1.0

I would like to stabilize this, but first I want to get more feedback on it.