# path

[![JSR](https://jsr.io/badges/@david/path)](https://jsr.io/@david/path)
[![npm](https://img.shields.io/npm/v/@dsherret/path)](https://www.npmjs.com/package/@dsherret/path)

Path class for JavaScript.

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

## Setup

```sh
# jsr
deno add jsr:@david/path

# npm
npm install @dsherret/path
```

## Example

```ts
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:

```ts
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.
