site-panzai/node_modules/bare-path/README.md

28 lines
595 B
Markdown
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
# bare-path
Path manipulation library for JavaScript.
```
npm i bare-path
```
## Usage
```js
const path = require('bare-path')
path.join('foo', 'bar') // foo/bar on posix, foo\bar on windows
```
## API
See the [`bare-path` reference](https://docs.pears.com/reference/bare/modules/bare-path).
## Threat model
`bare-path` is one of the addons Bare compiles into its binary, so it inherits [Bare's threat model](https://github.com/holepunchto/bare/blob/main/docs/threat-model.md). See [`docs/threat-model.md`](docs/threat-model.md) for where this addon sits in it.
## License
Apache-2.0