2.0.6 • Published 9 months ago

simpledownload v2.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
9 months ago

Node.js CI

Install

npm install simpledownload

Usage

import {simpledownload} from 'simpledownload'
await simpledownload('https://www.google.co.jp/images/srpr/logo11w.png', `${__dirname}/1.jpg`);

simpledownload(url: string, localPath: string, options?: {timeout, agent}): Promise\<void>

  • url - the url you wanna download. e.g https://www.google.co.jp/images/srpr/logo11w.png
  • localPath - e.g `${__dirname}/1.jpg`
  • options.timeout - use millisecond. If timeout, err.timeout would exist.
  • options.agent - http.Agent. For example, you can use node-socks-proxy-agent to enable socks5 proxy.

dev

  1. $ npm run test
  2. bump package.json version
  3. $ npm publish

license

MIT

2.0.5

9 months ago

2.0.6

9 months ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago