0.1.0 • Published 9 years ago

has-css-combinator v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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