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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ng2-common

v2.0.0

Published

This is an opensource library that contain commonly reusable peaces of code.

Readme

:star: :star: ng2-common :star: :star:

The idea behind this open source package is that lot of tasks are repetitive :triumph: so it's a greate idea if we can automate it, and that will safe you lot of time and energy :smiley: by transforming lot of code lines to small reusable peaces of code.

Installation

All you need is two steps and the package will be ready for use:

  1. This packaage will soon be a part of nmp online repository, and will become availible at: npm install ng2-common
  2. the second step you need to de is importing the Ng2CommnonModule, and you're ready to use it :smily:

Documentation

nc-toggle directive:

This is a very powerful directive that make bloc of code toggle(show/hide) when clicking a trigger in specific template, the text will hide automatically at the beggining and will change status everytime you click the button. you can also configure the animation that will take place when changing element visibility, and the directive is fully customazible with properties, so persons with little knowledge of Angular can use it.

Example of use:

<button [nc-toggle]="description">Click</button>
<div #description>
This is a block that will show and hide when clicking the button above...
</div> 

nc-confirm component:

Whenever you want to make a confirmation before an action, you may need a modal, and you create a code everytime to deal with that, so we create for you a useful compononent, that use the Angular way, because it it built on top of Angular material, with a very easy syntax, so all you need is a small pieces of code, to deal with this commonly encountered task.

Example of use:

<nc-confirm [data]="confimDate" [trigger]="deleteButton" (confirm)="deleteItem()"></nc-confirm>
<button #deleteButton>delete</button>/> 

Notices :warning:

This library is under construction, and will be soon part of nmp online registery, so everyone can install it easly and take advantage of it :smile:, we also welcome any code participation to the libraray :pray:.

How to contribute :muscle:

  • Features should respect: Feat/bla_bla_bla
  • Fix should respect: Fix/bla_bla_bla
  • All code should be strongly typed and fully commented