#About
Node Package's Statistics API
Our functions will provide statistics of node package.
This is a Node.js API wrapper for the NPM API and Registry.
Install via NPM
npm install npm-stat-api --save
i. Get Stats of Package
var npm = require('npm-stat-api');
// Parameters:
// 1. Package Name
// 2. Start Date
// 3. End Date
npm.stat('nutrient-database','2016-07-20','2017-08-20', function(err, response){
console.log(JSON.stringify(response));
});
ii. Get Details of Package
var npm = require('npm-stat-api');
// Parameters:
// 1. Package name
npm.details('nutrient-database', function(err, response){
console.log(JSON.stringify(response));
});
This module has been tested under limited scenarios. If you find any issue please feel free to report via one of the below platforms:
Github: npm-stat-api | Email: [email protected] | Skype: harshxxx3