@pstdio/opfs-utils
Version:
Utilities for the browser's OPFS: ls, grep, safe file read, unified diff patching, and MIME helpers.
39 lines (23 loc) • 1.07 kB
Markdown
# @pstdio/opfs-utils
[](https://www.npmjs.com/package/@pstdio/opfs-utils)
[](https://github.com/pufflyai/kaset/blob/main/LICENSE)
[](https://bundlephobia.com/package/%40pstdio%2Fopfs-utils)
Small utilities for working with the browser's Origin Private File System (OPFS).
For additional information, please refer to the [documentation](https://pufflyai.github.io/kaset/packages/opfs-utils).
## Quick Start
### Installation
```bash
npm i @pstdio/opfs-utils
```
### Usage
```ts
import { ls } from "@pstdio/opfs-utils";
// List from the OPFS root (current working dir is ".")
await ls(".");
```
## Notes & limitations
- Requires a secure context and browser support for the File System Access API.
## Contributing
See the [monorepo README](https://github.com/pufflyai/kaset#readme) for contribution guidelines.
## License
MIT © Pufflig AB