easy-registry
v1.0.1
Published
<p align="center"> <img src="https://cloud.githubusercontent.com/assets/16429579/22896657/3f5b2b66-f221-11e6-8702-3c51f80896f5.png" alt="wall"></p> > Easy tool for [NPM Registry][registry]
Downloads
3
Readme
Easy Registry
This module provides to give you information about a npm module.
const registry = require('easy-registry')
// Module Name
registry.init('splash-cli')
// Get downloads in the last day
registry.day((err, data) => {
if (!err) {
console.log(data)
}
})
// Get downloads in the last week
registry.week((err, data) => {
if (!err) {
console.log(data)
}
})
// Get downloads in the last month
registry.month((err, data) => {
if (!err) {
console.log(data)
}
})
// Get download in the last year
registry.year((err, data) => {
if (!err) {
console.log(data)
}
})
// Get total downloads
//(from 1 Jan 1000 to current day)
registry.absolute((err, data) => {
if (!err) {
console.log(data)
}
})
View the full example for more infos about data manipulation.
Install
NPM
$ npm install easy-registry --save
YARN
$ yarn add easy-registry
## Related