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

nuffjs

v1.0.5

Published

NUFF is a small collection of tiny independent libraries that aim to solve simple issues.

Downloads

10

Readme

NUFF

short for "enough", but often "enough" is used to mean "lots of" — Urban Dictionary

There are a lot of very powerful JS frameworks capable of doing very cool things, but a lot of simple content-oriented websites do not need that much power, sometimes to use less JavaScript is enough.

NUFF is a small collection of tiny independent libraries that aim to solve simple issues.
The whole NUFF is just 4.43 KB but each library can be used separately.

Each library included in NUFF respects this contract:

  • runs in modern browsers;
  • has no external dependencies;
  • is written in standard ES JavaScript, no transpiling involved;
  • exports also the classes used internally, not only the instances, so you could extend and modify them at runtime without the need to always fork the repository;
  • is fully documented;
  • is unit tested with 100% coverage.

Here are the libraries currently included in NUFF:

lazyCustomElements

The LazyCustomElementRegistry class is a Custom Element registry for defining and upgrading custom elements in a lazy manner, plus some interesting additional features.

2.09 KB | Tutorial | API Docs

events

Standard DOM Event listening and dispatching, but on steroids.
It supports delegation, throttling, listen to / dispatch events from any JS object (not only DOM elements), late listening to custom events being dispatched in the past.

1.14 KB | Tutorial | API Docs

dataset

Small utility to deal with data-attributes taking a namespace or prefix into account. It also takes care of type casting the values.

1.07 KB | Tutorial | API Docs

classList

Like the standard element.classList but taking a namespace or prefix into account.

645 B | Tutorial | API Docs

cssVars

Small utility to read / write CSS variables (custom properties) taking care of type casting.

740 B | Tutorial | API Docs

License

NUFF
Copyright (c) Federico Orru' and Contributors
Licensed on the terms of The Artistic License 2.0

This project is tested with BrowserStack.