24
Introduce the new Lightweight JS Library for DOM Manipulation called AmiraJS, which has only 0.4kb compressed size!
I am developing a library like jQuery but with more minimal features and size called AmiraJS.
It's released version 1.0.2 on github with the most commonly used APIs like innerHTML, value property, setAttribute, removeAttibute, show and hide elements.
AmiraJS reinvent the jquery but with only had a compressed size of 0.4kb, this is the reason why it's lightweight!
You can insert both value or text in single function.
$(".amira").insert("Hello World");
You can empty both value or text in single function.
$(".amira").empty();
You can set elements attribute by using setAttr
function.
$(".amira").setAttr("id", "11");
Also supports fluent design
$(".amira").setAttr("id", "11").setAttr("style", "color: red;");
You can remove elements attribute by using removeAttr
function.
$(".amira").removeAttr("id");
You can show elements by using show
function.
$(".amira").show();
You can hide elements by using hide
function.
$(".amira").hide();
jQuery is more complete in terms of features, but if you want to use a dom manipulation library with minimal size and features, AmiraJS could help.
Github Link : https://github.com/fauzan121002/amirajs
24