Giter VIP home page Giter VIP logo

nuffjs's Introduction

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.

nuffjs's People

Contributors

skidx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.