Home

Awesome

npm mit license build status coverage status deps status

Count npm user packages from npmjs.com website profile. API and CLI.

Install

npm i --save npm-pkgs-count
npm test
npm-pkgs-count --help

API

For more use-cases see the tests

npmPkgsCount

Count packages of the given npmjs.com user

Example

var npmPkgsCount = require('npm-pkgs-count');

npmPkgsCount('tunnckocore', function _cb(err, cnt) {
  if (err) {
    console.error(err);
    return;
  }
  console.log(cnt);
  //=> 96

  console.log(typeof cnt);
  //=> number
});

CLI

run npm-pkgs-count --help or try this one

npm i -g npm-pkgs-count

npm-pkgs-count tunnckocore

  Aloha, master!

  ℹ Please wait a moment...
  ℹ We fetching data from https://www.npmjs.com

  ✔ 96 packages by tunnckocore

Related

Author

Charlike Mike Reagent

License MIT license

Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Proudly generated by docks(1), April 18, 2015