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

badgess

v1.0.3

Published

tutorial using badges in git and npm

Downloads

13

Readme

Badges, Badges, Badges, Badges ...

Built with Grunt Build Status Code Climate Coverage Status Dependency Status devDependency Status npm version npm downloads NPM

Tutorial when creating a new repo and want to use badges ;-)


#Build Process Meet Travis CI

I choosed Travis CI, its free for open/public repos. What is Travis: In software development, Travis CI is an open-source hosted, distributed continuous integration service used to build and test projects hosted at GitHub. Travis CI is configured by adding a file named .travis.yml, which is a YAML format text file, to the root directory of the GitHub repository.

More in Travis CI

##Adding the npm task for travis-ci Travis CI runs npm test after it fetched your project and installed the dependencies, so we need to add this task to the package.json file.

"scripts": {
  "test": "grunt default --verbose"
}

I’ve added the --verbose option, so we’ll see more output of what is going on.

##Adding the .travis.yml Every Travis CI project needs to have a .travis.yml file in the root of the project folder, so it know what platform and version it should use to build/test your project. Here’s the one I used:

language: node_js
node_js:
   - "0.10"

After these changes your project is ready to be continuously builded with Travis CI.

But don’t forget to setup the Service Hook on Github!

Now You can use the build status badge: Read more in here


#Code Analysis Code Climate

I'm using Code Climate

What is Code Climate: Code Climate hosted software metrics help you ship quality Ruby, PHP and JavaScript code faster. Get control of your technical debt with real time static ...

They use GPA fro their metrics: Learn more about their GPA (grade point average)


#Coverage Coveralls

I'm using coveralls, coveralls can work soomtly with Travis-ci, in order to submit yor coverage to coveralls, I'm integrating in my GruntFile the following:

  1. mocha-lcov-reporter - This will report from mocha to the target file
  2. grunt-coveralls - This will submit the coverage result to coveralls

#Badges Dependencies David

I recommend david-dm.org.

David is free for public projects on Github.

David gets you an overview of your project dependencies, the version you use and the latest available, so you can quickly see what's drifting. Then it's all boiled down into a badge showing the current status, which you can embed on your site

Declare your dependencies in a package.json file and you're good.


Version badge

Versions

npm downloads

NPM