Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

nguyenphuminh/rottenjs

Repository files navigation


A simple, light-weight Javascript library for DOM manipulation and UI development


Downloads Version language

What is RottenJS ?

RottenJS is a light-weight(2.6kb), all-in-one Javascript library. It can be used for DOM manipulation, but it also provides many utilites for you to create websites with charm. The library is recommended for personal projects as its very light and scale well with medium-sized websites, but not recommended for big websites that are in production. RottenJS is a perfect fit for you if you want to create projects quick and easy, or if you just want to mess around with open-source libraries.

Comparision with other libraries/frameworks

Size Rotten.js Cash Zepto 1.2.0 jQuery Slim 3.4.1
Unminified 13.9 KB 36.5 KB 58.7 KB 227 KB
Minified 7.8 KB 16 KB 26 KB 71 KB
Minified & Gzipped 2.6 KB 6 KB 9.8 KB 24.4 KB

When it comes to size, Rotten.js totally shine, so if you want your website to be fast and light, Rotten.js can be a great option!

Getting started

Installation

You can clone RottenJS with git:

git clone https://github.com/nguyenphuminh/RottenJS.git

Or you can just pull it from unpkg.com by adding this to your .html file:

<script src="https://unpkg.com/rottenjs"></script>

Or from npm:

npm install rottenjs

If you're using NodeJS, please consider check out this code first:

// Import rottenjs to "rotten"
const rotten = require("rottenjs");
// Using rt()
const rt = rotten.rt;
// const rdom = rotten.rdom;
// const rUI = rotten.rUI;
// const rDev = rotten.rDev;

Documentations

Pros and Cons

Pros

  • Written in pure Javascript, easy to setup and use, no toolings needed.
  • Lightweight.
  • All-in-one.

Cons

  • Not optimized.
  • Works not that well with big sites

Who is using RottenJS ?

Social medias

Copyrights and License

Copyrights © 2020 Nguyen Phu Minh

This library is licensed under the MIT License