Skip to content

A small helper to split CSS selectors into subjects and conditions

License

Notifications You must be signed in to change notification settings

rasshofer/css-selector-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Selector Tree

A small helper to split CSS selectors into subjects and conditions

Build Status Coverage Status Dependency Status Dependency Status

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.

About

A small helper to split CSS selectors into subjects and conditions

Resources

License

Stars

Watchers

Forks

Packages

No packages published