> Easy tool for [NPM Registry][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.
NPM
$ npm install easy-registry --save
YARN
$ yarn add easy-registry
## Related