Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladocar/femtojs
femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
https://github.com/vladocar/femtojs
dom ecmascript6 es6 es6-javascript javascript jquery
Last synced: 2 months ago
JSON representation
femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
- Host: GitHub
- URL: https://github.com/vladocar/femtojs
- Owner: vladocar
- License: mit
- Created: 2019-03-05T16:16:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T13:21:05.000Z (almost 3 years ago)
- Last Synced: 2024-01-01T13:04:23.340Z (about 1 year ago)
- Topics: dom, ecmascript6, es6, es6-javascript, javascript, jquery
- Language: JavaScript
- Homepage: https://vladocar.github.io/femtoJS/
- Size: 75.2 KB
- Stars: 141
- Watchers: 8
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# femtoJS
[![License MIT](https://img.shields.io/badge/licence-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
[![Gzip Size](https://img.badgesize.io/https://unpkg.com/[email protected]/src/femtoJS.min.js?compression=gzip)](https://unpkg.com/[email protected]/src/femtoJS.min.js)
[![npm](https://img.shields.io/npm/v/femtojs.svg)](https://www.npmjs.com/package/femtojs) [![Join the chat at https://gitter.im/femtoJS/community](https://badges.gitter.im/femtoJS/community.svg)](https://gitter.im/femtoJS/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)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:
```sh
npm i femtojs
``````sh
yarn add femtojs
``````html
OR
```
### 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.](docs.md)
[Simple demo](https://vladocar.github.io/femtoJS/off-on.html)
[Project femtoJS](https://vladocar.github.io/femtoJS/)
License
This project is licensed under the MIT License