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

ng-pluralize-html

v1.0.1

Published

Module that extends ng-pluralize directive to support HTML

Readme

ng-pluralize-html Build Status

A module that extends ng-pluralize directive to support HTML which is a missing feature and a required functionality to some developers based on this open issue on AngularJs repository.

It has exactly the same API functionality, just change ng-pluralize to ng-pluralize-html.

API documentation can be found here.

Usage

Install

Bower

bower install ng-pluralize-html --save

npm

npm install ng-pluralize-html --save

yarn

yarn add ng-pluralize-html --save

Example

Click here to see it in action.

JS

// Declare the dependency module
var sampleApp = angular.module('ngPluralizeHtmlSample', ['ngPluralizeHtml']);

// Use it like ng-pluralize
sampleApp.controller('NgPluralizeHtmlController', ['$scope', function NgPluralizeHtmlController($scope){
  $scope.person1 = 'Igor';
  $scope.person2 = 'Misko';
  $scope.personCount = 1;
}]);

HTML

<div ng-app="ngPluralizeHtmlSample">
  <h1>Using ng-pluralize-html</h1>
  <div ng-controller="NgPluralizeHtmlController">
    <label>Person 1:<input type="text" ng-model="person1" value="Igor"/></label><br/>
    <label>Person 2:<input type="text" ng-model="person2" value="Misko"/></label><br/>
    <label>Number of People:<input type="text" ng-model="personCount" value="1"/></label><br/>

    <!-- Example with simple pluralization rules for en locale -->
    Without Offset:
    <ng-pluralize-html
      count="personCount"
      when="{
        '0': '<strong>Nobody</strong> is viewing.',
        'one': '<strong>1</strong> person is viewing.',
        'other': '<strong>{}</strong> people are viewing.'
      }">
    </ng-pluralize-html>

    <br>

    <!-- Example with offset -->
    With Offset(2):
    <ng-pluralize-html
      count="personCount"
      offset="2"
      when="{'0': '<strong>Nobody</strong> is viewing.',
        '1': '<strong>{{person1}}</strong> is viewing.',
        '2': '<strong>{{person1}} and {{person2}}</strong> are viewing.',
        'one': '<strong>{{person1}}, {{person2}} and one</strong> other person are viewing.',
        'other': '<strong>{{person1}}, {{person2}} and {}</strong> other people are viewing.'
      }">
    </ng-pluralize-html>
  </div>
</div>