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!
AmiraJS APIs
insert
You can insert both value or text in single function.
$(".amira").insert("Hello World");
empty
You can empty both value or text in single function.
$(".amira").empty();
setAttr
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;");
removeAttr
You can remove elements attribute by using removeAttr function.
$(".amira").removeAttr("id");
show
You can show elements by using show function.
$(".amira").show();
hide
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.

29

This website collects cookies to deliver better user experience

Introduce the new Lightweight JS Library for DOM Manipulation called AmiraJS, which has only 0.4kb compressed size!