Skip to content

andrescalco/selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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
});
...

About

A js boilerplate to use document.querySelector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published