rf-filereceiver
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

rf-filereceiver

NPM version

A component which interacts with user click, and download file via downloadjs

Install

yarn

yarn add rf-filereceiver

npm

npm install --save rf-filereceiver

Import

ES2015

import RfReceiver from 'rf-filereceiver'

CommonJS

const RfReceiver = require('rf-filereceiver')

Usage

import RfReceiver from 'rf-filereceiver'
 
function Example() {
  return (
    <RfReceiver
      url="https://leftstick.github.io/rf-filereceiver/public/example.txt"
      fileName="test.txt"
      fileMIMEType="text/plain"
    >
      <button>try me</button>
    </RfReceiver>
  )
}

LICENSE

MIT License

/rf-filereceiver/

    Package Sidebar

    Install

    npm i rf-filereceiver

    Weekly Downloads

    3

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    21.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • howard.zuo