selector-library

1.0.6 • Public • Published

selector-library

Library to select elements the jQuery way, without needing to import all the jQuery stuff

Installation

a) npm Module

$ npm i npm i selector-library --save

b) CDN

<script src="https://unpkg.com/selector-library"></script>

Usage

a) npm Module

import {$, $$} from 'selector-library';

$('#id-name').classList.add('added-class');
$$('.class-name').forEach(el => el.style.backgroundColor = 'red');

b) CDN

$('#id-name').classList.add('added-class');
$$('.class-name').forEach(el => el.style.backgroundColor = 'red');

Readme

Keywords

none

Package Sidebar

Install

npm i selector-library

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

2.42 kB

Total Files

4

Last publish

Collaborators

  • gautemo