Giter Site home page Giter Site logo

download-counts's Introduction

download-counts

Average daily download counts for every npm package.

This package:

  • collects download counts from npm's download-counts web service.
  • collects one year's worth of download data for each package.
  • is a key-value object. Keys are package names, values are average daily downloads.
  • works offline. It's just a big JSON object.
  • weighs about 12 MB.
  • includes scoped package names
  • is regularly updated using a Heroku bot. See script/release.sh and zeke.sikelianos.com/npm-and-github-automation-with-heroku/ for info on how that works.

Installation

yarn add download-counts

Usage

const counts = require('download-counts')

// get average daily downloads for a package
counts.express
// 218212

// top ten most downloaded packages
Object.keys(counts).slice(0, 10)
// [ 'glob',
//   'readable-stream',
//   'async',
//   'lodash',
//   'minimatch',
//   'minimist',
//   'source-map',
//   'qs',
//   'inherits',
//   'isarray' ]

Stats

87% of the packages in the registry are downloaded 0-1 times per day.

Downloads per Day Packages
0-0 269045
1-9 210471
10-99 44155
100-249 6589
250-499 3426
500-999 2676
1000-4999 3457
5000-9999 951
10000-24999 755
25000-49999 481
50000-99999 385
100000-10000000 768

Tests

yarn && yarn test

Dependencies

None

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • got: Simplified HTTP requests
  • human-interval: Human readable time measurements
  • lodash: Lodash modular utilities.
  • mocha: simple, flexible, fun test framework
  • package-stream: An endless stream of clean package data from the npm registry.
  • require-dir: Helper to require() directories.
  • standard: JavaScript Standard Style
  • standard-markdown: Test your Markdown files for Standard JavaScript Styleβ„’

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.