selector-has

1.0.0 • Public • Published

selector-has

build status coverage status coverage status

A helper utility to check the presence of a class in a CSS selector

usage

var has = require('selector-has');
 
has('.foo > .bar', 'foo');
// => true
 
has('.foobar', 'foo');
// => false
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i selector-has

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rtsao