vladocar / femtoJS

femtoJS - Really small JavaScript (ES6) library for DOM manipulation.

Home Page:https://vladocar.github.io/femtoJS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

femtoJS

License MIT Gzip Size npm Join the chat at https://gitter.im/femtoJS/community

Small JS (ES6) library for DOM manipulation.

So, what is femtoJS? femtoJS is a JavaScript library for basic DOM manipulation. It has a jQuery-inspired syntax and supports chaining.

femtoJS is about 100 lines of code in size, and the entire library weighs in at just under 0.9kB compressed and gzipped.

It works in all the browsers that support ES6. If you need to support older browsers take a look into my previous project nanoJS.

You can use direct download or:

npm i femtojs
yarn add femtojs
<script src="https://unpkg.com/femtojs@1.0.1/src/femtoJS.min.js"></script>

OR

<script src="https://cdn.jsdelivr.net/npm/femtojs@1.0.1/src/femtoJS.min.js"></script>

Utils:

addClass
attr
css
empty
getAttr
html
insertAfter, insertBefore, insertFirst insertLast
offset
on
parent
removeAttr
removeClass
text
toggleClass

You can find it here some basic examples.

Simple demo

Project femtoJS

License

This project is licensed under the MIT License

About

femtoJS - Really small JavaScript (ES6) library for DOM manipulation.

https://vladocar.github.io/femtoJS/

License:MIT License


Languages

Language:JavaScript 70.1%Language:HTML 25.2%Language:CSS 4.7%