New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dwn

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dwn

A simple tool for downloading via node.js

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

dwn

A simple tool for downloading via node.js

Base code partly copied from hughsk/nw-download

Command Line

$ npm install -g dwn
$ dwn http://example.com/logo.png
$ dwn http://example.com/logo.png cache/
$ dwn http://example.com/logo.png cache/boy.png

Nodejs Library

var dwn = require('dwn')
dwn({
  uri: 'http://example.com/logo.png',  // required
  progress: function(v){},  // eg. 15%, v=0.15
  callback: function(err, buf){}  // buffer
})

or with stream:

var stream = dwn._download(uri)
stream.on('progress', function(v){
  console.log('progress:', v)
})
stream.on('end', done)
stream.on('error', done)
stream.pipe(createWriteStream(dest))

Keywords

dwn

FAQs

Package last updated on 15 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts