has-css-combinator

0.1.0 • Public • Published

has-css-combinator Build Status

Check if a selector has combinator.

Installation

$ npm install has-css-combinator

Usage

var hasCombinator = require('has-css-combinator')
 
hasCombinator('.foo+.bar') // true
hasCombinator('.foo + .bar') // true
hasCombinator('.foo ~ .bar') // true
hasCombinator('.foo > .bar') // true
hasCombinator('.foo') // false
hasCombinator('p.foo') // false

License

The MIT License (MIT)

Copyright (c) 2015 Masaaki Morishita

Readme

Keywords

Package Sidebar

Install

npm i has-css-combinator

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • morishitter