download-npm-package
Download a single npm package
Last updated 2 years ago by kesla .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install download-npm-package 
SYNC missed versions from official npm registry.

download-npm-package

Download a module from the npm registry.

Installation

npm [-g] install download-npm-package

Features

  • Library to download packages
  • CLI to download packages
  • Will use registry (and auth) defined in your .npmrc file
  • Supports scoped packages

Usage

node

downloadNpmPackage takes an package arg & a path as arguments and returns a promise, a promise that resolves once the package has been downloaded to the folder set in path.

import downloadNpmPackage from 'download-npm-package';

downloadNpmPackage({
  arg: 'modulname@version' // for example, npm@2 or @mic/version@latest etc
  dir: '/tmp' // package will be downlodaded to ${dir}/packageName
}).then()

cli

There's also a cli available!

download-npm-package $packageArg [$path]

Current Tags

  • 3.1.12                                ...           latest (2 years ago)

17 Versions

  • 3.1.12                                ...           2 years ago
  • 3.1.11                                ...           3 years ago
  • 3.1.10                                ...           4 years ago
  • 3.1.9                                ...           4 years ago
  • 3.1.8                                ...           4 years ago
  • 3.1.7                                ...           4 years ago
  • 3.1.6                                ...           4 years ago
  • 3.1.5                                ...           4 years ago
  • 3.1.4                                ...           4 years ago
  • 3.1.3                                ...           4 years ago
  • 3.1.2                                ...           4 years ago
  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |