0.2.4 • Published 1 year ago
@akrc/nashi v0.2.4
🍐 Nashi
The modern jQuery alternative.
Playground
Motivation
Write this:
nashi('p').text('hello').addClass('foo').toggleClass('bar');
Not that:
const p = document.querySelectorAll('p');
for (const item of p) {
p.innerText = 'hello';
p.classList.add('foo');
p.classList.toggle('bar');
}
Get started
pnpm add @akrc/nashi
yarn add @akrc/nashi
npm install @akrc/nashi
import nashi from '@akrc/nashi';
const body = nashi('body');
const p = nashi
.create('p')
.text('Hello, World')
.class('text-lg')
.id('greet')
.click(() => console.log('Hello'));
body.firstChild(p);
And see documention
Community
See Nashi awesome
0.2.4
1 year ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
0.0.0
3 years ago