# react-file-download

> This package has been deprecated! Please use js-file-download instead

Latest version **0.3.5** (published 2017-09-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.5 |
| Published | 2017-09-14 |
| First published | 2016-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 920 |
| Author | Kenneth Jiang |
| Maintainers | kennethjiang |
| Keywords | react-components, react, file, download |

## Links

- npm: https://www.npmjs.com/package/react-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/react-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.3.5 (latest) — 2017-09-14
- 0.3.4 — 2017-05-03
- 0.3.3 — 2017-04-16
- 0.3.2 — 2016-11-11
- 0.3.1 — 2016-06-28
- 0.3.0 — 2016-06-28
- 0.2.0 — 2016-04-27
- 0.1.3 — 2016-04-27
- 0.1.2 — 2016-04-27
- 0.1.1 — 2016-04-27
- 0.1.0 — 2016-04-27

## README

# React File Download

[![NPM version][npm-badge]][npm] [![Build Status][travis-ci-image]][travis-ci-url]

[![Dependency Status][deps-badge]][deps]
[![devDependency Status][dev-deps-badge]][dev-deps]
[![peerDependency Status][peer-deps-badge]][peer-deps]

[React](http://facebook.github.io/react/) component to trigger browser to save data to file as if it was downloaded.

# Installation

    npm install react-file-download --save

# Usage

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

[npm-badge]: http://badge.fury.io/js/react-download.svg
[npm]: http://badge.fury.io/js/react-download

[deps-badge]: https://david-dm.org/luqin/react-download.svg
[deps]: https://david-dm.org/luqin/react-download

[dev-deps-badge]: https://david-dm.org/luqin/react-download/dev-status.svg
[dev-deps]: https://david-dm.org/luqin/react-download#info=devDependencies

[peer-deps-badge]: https://david-dm.org/luqin/react-download/peer-status.svg
[peer-deps]: https://david-dm.org/luqin/react-download#info=peerDependencies

[travis-ci-image]: https://travis-ci.org/luqin/react-download.svg
[travis-ci-url]: https://travis-ci.org/luqin/react-download

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