min-find
v1.1.4
Published
simple Sizzle like query selector
Downloads
45
Readme
min-find
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][downloads-url] [![Dependency Status][david-image]][david-url] [npm-image]: https://img.shields.io/npm/v/min-find.svg?style=flat-square [npm-url]: https://npmjs.org/package/min-find [downloads-image]: http://img.shields.io/npm/dm/min-find.svg?style=flat-square [downloads-url]: https://npmjs.org/package/min-find [david-image]: http://img.shields.io/david/chunpu/min-find.svg?style=flat-square [david-url]: https://david-dm.org/chunpu/min-find
simple Sizzle like query selector
Installation
npm i min-find
Usage
var find = require('min-find')
var elements = find(selector [, containerElement])
always return node list in array type
Support
- id
find('#id')
- tag
find('#h1')
- css query
find('div > h1, div > h2')
css query use
element.querySelectorAll
Custom
You can custom the css query by self, if your browser has no query selector like IE8-
e.g.
find.custom = Sizzle