Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dsherret/path
- Owner: dsherret
- License: mit
- Created: 2024-08-18T17:09:13.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-27T01:31:30.000Z (5 months ago)
- Last Synced: 2024-10-10T15:05:28.788Z (3 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.