tinysaver
Version:
Modern replacement of file-saver.js.
42 lines (27 loc) • 954 B
Markdown
# tinysaver
[](https://github.com/ntnyq/tinysaver/actions)
[](https://www.npmjs.com/package/tinysaver)
[](https://www.npmjs.com/package/tinysaver)
[](https://github.com/ntnyq/tinysaver/blob/main/LICENSE)
Modern replacement of file-saver.js.
> [!IMPORTANT]
> Status: Work in progress.
## Install
```shell
npm install tinysaver
```
```shell
yarn add tinysaver
```
```shell
pnpm add tinysaver
```
## Usage
```ts
import { saveAs } from 'tinysaver'
saveAs(new Blob(['hello world'], { type: 'text/plain' }), 'hello-world.txt')
```
## Credits
- [eligrey/FileSaver.js](https://github.com/eligrey/FileSaver.js)
## License
[MIT](./LICENSE) License © 2025-PRESENT [ntnyq](https://github.com/ntnyq)