Nattily Primped Monster

    query-component

    0.0.1 • Public • Published

    query

    Query the DOM with selector engine fallback support. This abstraction allows all other components that require dom querying to indirectly support old browsers, without explicitly adding support for them.

    Installation

    $ component install component/query
    

    API

    query(selector, [el])

    Query selector against the document or el and return a single match.

    query('ul > li');
    query('ul > li', articles);

    query.all(selector, [el])

    Query selector against the document or el and return all matches.

    query.all('ul > li');
    query.all('ul > li', articles);

    Fallback engines

    Currently supported:

    License

    MIT

    Keywords

    none

    Install

    npm i query-component

    DownloadsWeekly Downloads

    98

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • tjholowaychuk