npm-package-resolver
Version:
An API for Resolving NPM package dependencies
40 lines (29 loc) • 915 B
Markdown
[](https://snyk.io/test/npm/name)
# 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
```