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
node api.js
- will start the server on port 8080
Accessing the api, provide a package name, will resolve all its dependencies and return a json list.
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