npm-package-resolver

1.0.6 • Public • Published

Known Vulnerabilities

Package Resolver

Provides a basic REST API for getting a list of all package dependencies for a specific npm module, using the registry call convention:

https://registry.npmjs.org/npm-package-resolver/latest?json=true
  • Redis is used as Cache store for resolved dependencies for a pacakge

Staring the Beast

node api.js
  • will start the server on port 8080

API

Accessing the api, provide a package name, will resolve all its dependencies and return a json list.

http://localhost:8080/api/resolve_deps/npm-package-resolver

Tests

Tests are made using Mocha and Should for assertions.

mocha
  • currently only redis is tested
  • don't forget to install mocha globally, altough abd it is included in devDependencies as reminder
npm install mocha -g

Package Sidebar

Install

npm i npm-package-resolver

Weekly Downloads

2

Version

1.0.6

License

ISC

Last publish

Collaborators

  • syberkitten