# js-file-download

> Javascript function that triggers browser to save javascript-generated content to a file

Latest version **0.4.12** (published 2020-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-file-download
pnpm add js-file-download
yarn add js-file-download
bun add js-file-download
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.12 |
| Published | 2020-05-06 |
| First published | 2017-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 920 |
| Author | Kenneth Jiang |
| Maintainers | kennethjiang |
| Keywords | javascript, file, react, download |

## Links

- npm: https://www.npmjs.com/package/js-file-download
- Repository: https://github.com/kennethjiang/js-file-download
- Issues: https://github.com/kennethjiang/js-file-download/issues
- npm.io page: https://npm.io/package/js-file-download

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.4.12 (latest) — 2020-05-06
- 0.4.11 — 2020-03-31
- 0.4.10 — 2020-02-18
- 0.4.9 — 2019-12-11
- 0.4.8 — 2019-08-20
- 0.4.7 — 2019-05-24
- 0.4.6 — 2019-05-22
- 0.4.5 — 2019-03-21
- 0.4.4 — 2018-09-29
- 0.4.3 — 2018-09-27
- 0.4.2 — 2018-09-27
- 0.4.1 — 2017-09-14
- 0.4.0 — 2017-09-14

## README

# Javascript File Download

Javascript function to trigger browser to save data to file as if it was downloaded.

# Installation

    npm install js-file-download --save

# Usage

    var fileDownload = require('js-file-download');
    fileDownload(data, 'filename.csv');

---
_Source: https://npm.io/package/js-file-download · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
