cssauron
Advanced tools
Comparing version 1.0.0 to 1.1.0
14
index.js
@@ -259,2 +259,6 @@ module.exports = language | ||
if(match.indexOf('not') === 0) { | ||
return valid_not_match(options, match.slice(4, -1)) | ||
} | ||
return function() { | ||
@@ -265,2 +269,12 @@ return false | ||
function valid_not_match(options, selector) { | ||
var fn = parse(selector, options) | ||
return not_function | ||
function not_function(node) { | ||
return !fn(node, true) | ||
} | ||
} | ||
function valid_any_match(options, selector) { | ||
@@ -267,0 +281,0 @@ var fn = parse(selector, options) |
{ | ||
"name": "cssauron", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "create matching selectors from css for your very own nested object hierarchy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,2 +26,10 @@ # cssauron | ||
It's easy to use with your favorite nested tree structures! | ||
Delicious with HTML! Digestable with JSON! | ||
| HTML | JSON | GLSL AST | JS AST (Esprima) | | ||
|------|------|----------|------------------------| | ||
| [cssauron-html](http://npm.im/cssauron-html) | [cssauron-json](http://npm.im/cssauron-json) | [cssauron-glsl](http://npm.im/cssauron-glsl) | [cssauron-falafel](http://npm.im/cssauron-falafel) | | ||
# API | ||
@@ -28,0 +36,0 @@ |
22000
668
106