1.0.1 • Published 5 years ago

@andre_scalco/selector v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Selector

A simple JS boilerplate to use document.querySelector with $

Installation

NPM

npm i --save @andre_scalco/selector

Usage

Single item - $

import { $ } from '@andre_scalco/selector';
$('.your-document-item').some().dom(),method();
...

Multiple items - _$

import { _$ } from '@andre_scalco/selector';
let items = _$('.ul li');

[].filter.call(items, (obj) => {
    // do your stuff here
});
...
1.0.1

5 years ago

1.0.0

5 years ago