1.0.1 • Published 7 years ago

easy-registry v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

  • got - Simplified HTTP requests

  • chili-js - Useful NodeJs variables and functions