simple-download
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Simple Download

Download files with ease. (No dependencies!)

Wallaby.js

Install

	npm install simple-download

	# or

	yarn add simple-download

Usage

	import download from 'simple-download'

	const url = 'https://httpbin.org/image/png'

	await download(url, '~/Desktop/my-image.png') //=> Promise<string | Buffer>

API

url

  • Type: string
  • required: true

path

  • Type: string
  • required: true
  • Note: It must have the file name. (ex: ~/Desktop/my-image.png)

Readme

Keywords

none

Package Sidebar

Install

npm i simple-download

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

24.5 kB

Total Files

24

Last publish

Collaborators

  • rawnly