npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

egojs

v1.0.3

Published

A small utility to check your projects stats on GitHub and npm

Downloads

4

Readme

EgoJS

A small utility to check your projects stats on GitHub and npm.

Build Status Coverage Status Documentation Status Dependencies status Dev dependencies status

Yes, it's all about the community and we only care about the contribution, but come on, you like when you see big number on the downloads counter, or that a lot of people forked/favorited your repo. Well, this is a small utility that allows you to register your projects and check their stats all together right from the terminal.

Information

| - | - | |--------------|------------------------------------------------------------------| | Package | egojs | | Description | Check your project stats on GitHub and npm from the terminal. | | Node Version | >= v0.12.6 (You need >= v4.0.0 for the tests) |

Installation

You can install it using npm.

npm install egojs -g

Usage

Configuration

egojs config

You can start the configuration with the config command or by running anything for the first time :P. For now, the configuration only asks you for one thing: A GitHub access token. We need it in order to request for your repository information on their API.

You can generate a new GitHub access token using this URL.

Add a package

egojs add

Package is the way EgoJS identifies your projects, and they have three properties the app will ask you for:

  • Name: This doesn't have to match anywhere, it's just a reference name for the database.
  • Repository: A short version of your GitHub repository URL: username/project.
  • npm package: The name of your project on npm.

Now, something to have in mind is that you can ignore the repository or the npm package, but not both.

Edit a package

egojs edit <id>

You can easily edit a package properties by using the edit command. You can obtain the package unique id from the first column of the table (see the list command).

Remove a package

egojs remove <id>

Removing packages it's as easy as editing them, instad of edit, use the remove command with the unique id you obtained from the table and your package goes away!.

Show me the numbers!

egojs list

This is the command you were looking for... It will show the table with your project stats. This is also executed if you didn't specify any command.

As a module

I coded EgoJS so the CLI interface will consume a module that can be also used by other tools:

const EgoJS = require('egojs');

const inst = new EgoJS();
inst.setGitHubToken('abc');
inst.addPackage('Rosario', 'homer0/Rosario', 'charito')
.then((pkg) => {
	console.log(pkg.name, ' was successfully added!');
});

For more information, you can check the EgoJS module documentation.

Development

Install Git hooks

./hooks/install

npm tasks

  • npm run build: Build the module to be ES5 compatible with Babel.
  • npm test: Run the module's unit tests with Jest.
  • npm run coverage: Run the unit tests and open the coverage report on the browser.
  • npm run lint: Lint the plugin's code with JSCS and ESLint.
  • npm run docs: Generate the project documentation using ESDoc.

License

MIT. License file.