Skip to content
femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
logo First commit Mar 5, 2019
src Oops, accidentally added this to the minified file but not the regula… Mar 8, 2019
.gitignore First commit Mar 5, 2019
LICENSE Initial commit Mar 5, 2019
README.md Update version 1.0.1 Mar 8, 2019
docs.md First commit Mar 5, 2019
github.svg
index.html
off-on.html
package.json Update version 1.0.1 Mar 8, 2019

README.md

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.