npm-package-versions
Get an array of all available versions of a given npm package
Last updated 9 years ago by watson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install npm-package-versions 
SYNC missed versions from official npm registry.

npm-package-versions

Get an array of all available versions of a given npm package.

Build status js-standard-style

Installation

npm install npm-package-versions --save

Usage

var pkgVersions = require('npm-package-versions')

pkgVersions('bonjour', function (err, versions) {
  if (err) throw err
  console.log('Bonjour package versions available:')
  versions.forEach(function (version) {
    console.log('- %s', version)
  })
})

API

pgkVersions.uri

Set this property to overwrite the default registry URI.

Defaults to https://registry.npmjs.org/

pkgVersions.params

Set the property to overwrite the default npm-registry-client params for client.get.

Defaults to {}.

License

MIT

Current Tags

  • 1.0.1                                ...           latest (9 years ago)

2 Versions

  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |