2.0.1 • Published 7 years ago

queryselector.js v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

queryselector.js

Helper function returning all elements in the DOM that matches a specified CSS selector. The function returns a single element when selector starts with a sign character: #foo. It returns a NodeList for all other cases.

Installation

$ npm i --save queryselector.js

Example

import $ from 'queryselector.js';

let myFoo = $('#foo');

// A convenience method is added to the Node and NodeList prototypes:
let myBar = myFoo.$('.bar');
2.0.1

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago