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/[email protected]/src/femtoJS.min.js"></script>
OR
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/femtoJS.min.js"></script>
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.
This project is licensed under the MIT License