Socket
Socket
Sign inDemoInstall

npm-stat-api

Package Overview
Dependencies
47
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    npm-stat-api

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.


Version published
Weekly downloads
14
decreased by-22.22%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

#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.

Installation

Install via NPM


npm install npm-stat-api --save

Example

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));
});

Any issue or want more features? Contact me!

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: harshdoshi999@gmail.com | Skype: harshxxx3

Keywords

FAQs

Last updated on 03 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc