css-selector-tree
v0.0.2
Published
A small helper to split CSS selectors into subjects and conditions
Downloads
4
Maintainers
Readme
CSS Selector Tree
A small helper to split CSS selectors into subjects and conditions
Installation
npm install css-selector-tree --save-dev
API
cssSelectorTree.tree(selector)
Accepts a CSS selector and returns its tree (subject and conditions).
In case no valid CSS selector is provided, false
is returned.
cssSelectorTree.subject(selector)
Accepts a CSS selector and returns its subject.
In case no valid CSS selector is provided, false
is returned.
cssSelectorTree.conditions(selector)
Accepts a CSS selector and returns its conditions.
In case no valid CSS selector is provided, false
is returned.
Changelog
- 0.0.2
- Update outdated dependencies
- 0.0.1
- Initial version
License
Copyright (c) 2016 Thomas Rasshofer
Licensed under the MIT license.
See LICENSE for more info.