1.0.0 • Published 9 years ago

zap-base-dom-selector v1.0.0

Weekly downloads
23
License
MIT
Repository
github
Last release
9 years ago

zap-base-dom-selector Build Status

just translating (and testing) some old code to ES6, nothing to see here ;-)

Install

$ npm install zap-base-dom-selector

Usage

import {
    $,
    $$,
    getNext,
    getParent,
    getParents,
} from 'zap-base-dom-selector';

$

const element = $('.selector');
const elementInsideElement = $('.selector', element);

$$

const elements = $$('.selector');
const elementsInsideElement = $$('.selector', element);

getNext

const nextElement = getNext(element);

getParent

const parent = getParent(element);
const specificParent = getParent(element, '.selector');

getParents

const parents = getParents(element);
const specificParents = getParents(element, '.selector');
1.0.0

9 years ago

0.2.0

9 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago