JSPM

flash-getter

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23916F
  • License ISC

download file as fast as possible

Package Exports

  • flash-getter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flash-getter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Flash Getter

Getting Started

  • Easy to download files, even large files :)))
  • Open 30 connections to download file if Range Request

Installing

yarn add flash-getter

or

npm i --save flash-getter

Usage

import FlashGetter from 'flash-getter'
// const FlashGetter = require('flash-getter')

FlashGetter
    .download(url, options)
    .then(filepath => console.log(filepath))
    .catch(err => console.log(err))

options

Key Value Default Value
newName new file name file name of the url
headers custom header
dest directory to store file current dir

Return Value Promise with file path of file on your machine