All Projects → vladocar → Nanojs

vladocar / Nanojs

Licence: mit
Minimal standalone JS library for DOM manipulation

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Nanojs

Anglesharp.js
👼 Extends AngleSharp with a .NET-based JavaScript engine.
Stars: ✭ 68 (-89.31%)
Mutual labels:  library, dom
Slim.js
Fast & Robust Front-End Micro-framework based on modern standards
Stars: ✭ 789 (+24.06%)
Mutual labels:  library, dom
Crab
JavaScript library for building user interfaces with Custom Elements, Shadow DOM and React like API
Stars: ✭ 22 (-96.54%)
Mutual labels:  library, dom
Jails
An alternative for Javascript Vanilla Applications
Stars: ✭ 153 (-75.94%)
Mutual labels:  library, dom
Abort Controller
An implementation of WHATWG AbortController interface.
Stars: ✭ 213 (-66.51%)
Mutual labels:  library, dom
Anglesharp
👼 The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
Stars: ✭ 4,018 (+531.76%)
Mutual labels:  library, dom
Rye
A modern, lightweight browser library using ES5 natives
Stars: ✭ 271 (-57.39%)
Mutual labels:  library, dom
Bunny
BunnyJS - Lightweight native (vanilla) JavaScript (JS) and ECMAScript 6 (ES6) browser library, package of small stand-alone components without dependencies: FormData, upload, image preview, HTML5 validation, Autocomplete, Dropdown, Calendar, Datepicker, Ajax, Datatable, Pagination, URL, Template engine, Element positioning, smooth scrolling, routing, inversion of control and more. Simple syntax and architecture. Next generation jQuery and front-end framework. Documentation and examples available.
Stars: ✭ 473 (-25.63%)
Mutual labels:  library, dom
Instagram Api
Instagram's private API
Stars: ✭ 5,168 (+712.58%)
Mutual labels:  library
Superembed.js
Fluid width for YouTube, Vimeo, Vine, VideoPress, DailyMotion, and more embedded videos.
Stars: ✭ 615 (-3.3%)
Mutual labels:  library
Create React Library
React NPM library starter kit based on Facebook's create react app
Stars: ✭ 597 (-6.13%)
Mutual labels:  library
Cordova Plugin Splashscreen
Apache Cordova Plugin splashscreen
Stars: ✭ 602 (-5.35%)
Mutual labels:  library
Taskscheduler
Cooperative multitasking for Arduino, ESPx and STM32 microcontrollers
Stars: ✭ 613 (-3.62%)
Mutual labels:  library
Libtmux
⚙️ python api for tmux
Stars: ✭ 599 (-5.82%)
Mutual labels:  library
Nanomorph
🚅 - Hyper fast diffing algorithm for real DOM nodes
Stars: ✭ 621 (-2.36%)
Mutual labels:  dom
Ascii art
Real-Time ASCII Art Rendering Library
Stars: ✭ 599 (-5.82%)
Mutual labels:  library
Html To Image
✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
Stars: ✭ 595 (-6.45%)
Mutual labels:  dom
Lwan
Experimental, scalable, high performance HTTP server
Stars: ✭ 5,520 (+767.92%)
Mutual labels:  library
Stepper Touch
Stepper Touch for Android based on MaterialUp submission
Stars: ✭ 621 (-2.36%)
Mutual labels:  library
Leku
🌍 Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.
Stars: ✭ 612 (-3.77%)
Mutual labels:  library

nanoJS

License MIT Gzip Size npm

Minimal standalone JS library for DOM manipulation

nanoJS is around 100 lines of code (0.9 Kb compressed) JavaScript library for basic DOM manipulation. It has jQuery like syntax and supports chaining.

Syntax demos:

$(".someClass").css("background-color:green;").html("Hello World");

$('#c').animate('2.3', '1.2','0','1','1','0','0', '0','0','1').css('background-color:red').text('Hello');

$("#a").on("click", function(){

  $("#someDiv").css("background-color:green;color:#fff;");

})

You can find it here some basic examples. also the Mission & Philosophy of nanoJS

It works in IE9 and later. (some methods addClass, removeClass and toggleClass will not work in IE9)

Read more here:

https://vladocar.github.io/nanoJS/

or on my blog:

http://www.vcarrer.com/2018/05/nanojs-javascript-for-dom-manipulation.html

You can use direct download or:

npm i @vladocar/nanojs
yarn add @vladocar/nanojs
<script src="https://unpkg.com/@vladocar/[email protected]/src/nanoJS.min.js"></script>

OR

<script src="https://cdn.jsdelivr.net/npm/@vladocar/nanojs/src/nanoJS.min.js"></script>

Utils:

addClass
animate
attr
css
cssdom
empty
eq
getAttr
html
insertAfter, insertBefore, insertFirst insertLast
offset
on
parent
removeAttr
removeClass
siblings
text
toggleClass
log

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].