A wrapper for the gemnasium API
First set the correct environment variables, which can be found in the gemnasium account and project settings pages.
export GEMNASIUM_TOKEN=yourtoken
export GEMNASIUM_PROJECT_SLUG=yourprojectslug
var GemnasiumClient = require('gemnasium-client');
var client = new GemnasiumClient();
Retrieve details for the project.
client.details(function(error, result){
console.log(error, result);
});
Retrieve all security alerts for the project.
client.alerts(function(error, result){
console.log(error, result);
});
Retrieve all dependencies for the project.
client.dependencies(function(error, result){
console.log(error, result);
});
Retrieve all the dependency files for the project.
client.dependencyFiles(function(error, result){
console.log(error, result);
});
Run the following command to see a demo of the above methods:
node example/client.js
To run tests:
npm test