Skip to content

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

License

Notifications You must be signed in to change notification settings

vladocar/femtoJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •