Uno.js
A JS library that exports one function per file, which doesn't even need to be downloaded.
Installation
You don't need to install anything. Just import the function you need via a CDN.
For example, to import the fromEmmet
function, you can use the following code:
import fromEmmet from 'https://uno.js.org/lib/DOM/fromEmmet.js';
The Syntax for importing any FUNCTION of any TYPE is as follows:
import FUNCTION from 'https://uno.js.org/lib/TYPE/FUNCTION';
And the documentation is
https://uno.js.org/docs/TYPE/FUNCTION
Don't want to use a CDN? You can head over to the Documentation of that function and copy the code from there.
Why Uno.js?
-
Uno.js is a JavaScript library that offers the convenience of exporting one function per file without the need for downloading the entire library.
-
By exporting individual functions, Uno.js allows you to import only the specific functions you require, resulting in a smaller bundle size and improved code readability.
-
The documentation for Uno.js is automatically generated from the source code, ensuring that it is always up to date. You can find the documentation in the
documentations
directory on the GitHub Repository or on the Uno.js website of that function. (refer to the Installation section for more details) -
It supports jsdoc comments, which makes it easier to understand the function's purpose and usage.
-
Constructs, As of now Uno.js has two constructs
Complex Number
,Fraction
andSuper Element
. These constructs are used to represent complex numbers, fractions, and HTML elements respectively. Super Charge your code with these constructs.
Documentation
The documentation for Uno.js is automatically generated from the source code, ensuring that it is always up to date. You can find the documentation in the documentations
directory on the GitHub Repository or on the Uno.js website of that function.
Each function has its own documentation, which includes the function's purpose, usage, and examples.
The functions are divided into the following categories for easy navigation: