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.clock

v0.1.0

Published

Clock module for customisable analog and digital clocks for use with AngularJS 1.x

Readme

ng.clock

AngularJS 1.X clock module with customisable circular analogue and digital clock

###Getting started First You need to install the ng.clock module as a dependency for Your project via npm:

Second You need to add AngularJS 1.X and ng.clock references to Your project:

<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/ng.clock/index.js"></script>

Third You need to simply add the ng.clock module as a dependency to Your app:

angular.module('myApp', ['ng.clock'])

Then You can finally use the directives to add either the analogue clock or the digital clock to Your project:

<digital-clock></digital-clock>
<!-- or -->
<analog-clock></analog-clock>

Customising

Both of these directives have some attributes to modify them with to Your liking

The digital clock

By default the digital clock has only hours and minutes displayed and the colon in beteen them is used to reference the seconds passing by blinking.

If You want to also display the seconds as numbers, set the seconds attribute true:

<digital-clock seconds="true"></digital-clock>

This will stop the colon blinking and instead will append the seconds to the end.

The analogue clock

By default the analogue clock has only hours and minutes hands visible and the default color for everything is black.

You can change the colors of each of the hands and the number dots separately with hour-color, min-color, sec-color and num-color.

<analog-clock hour-color="blue" min-color="#aabbcc" sec-color="red" num-color=""green></analog-clock>

You could also change both main hands colors at the same time with main-hands-color.

<analog-clock main-hands-color="navy" sec-color="red"></analog-clock>

Also You could turn the seconds hand on by setting the attribute sec-hand

<analog-clock sec-hand="true"></analog-clock>

The seconds hand is turned on by either the parameter sec-hand or by setting the color for the seconds hand with sec-color.