1.3.0 • Published 19 days ago

package-fetcher v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
19 days ago

package-fetcher

Get information about a NPM package directly from the registry

Installation

npm install package-fetcher@latest

Example

const package = require('package-fetcher');
package.get('moment').then(info => {
  console.log(info.name, info.description)
}).catch(error => {
  console.log('An error ocurred!', error)
});

Functions

  • get(package name) - Get information about the latest version of a package

  • getDependencies(package name) - Get the dependencies (or dev dependencies) of a NPM package

  • search(search term, limit?) - Get different NPM packages by searching for keywords in the registry. If you don't specify a limit, it will return the default number of results (20)

1.3.0

19 days ago

1.2.6

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago