cssparser.js
cssparser.js copied to clipboard
cssparser.js is a parser that generate json from css with matched orders & structures.
` "main": "lib/cli.js", ` if you wanna use it in commonJS way by impoting cssparser it will lead you to wrong entry point with no way to access ` new...
``` .btn { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0f2f5', endColorstr='#d1d9e1', GradientType=0); } ``` Throws this exception ``` Parse error on line 1483: ...t-x; filter: progid:DXImageTransform.Mi ----------------------^ Expecting 'RIGHT_CURLY_BRACKET', 'SEMICOLON', 'COMMA', 'URL_FUNC', 'OPERATOR_NOT', 'LEFT_PARENTHESIS', 'RIGHT_PARENTHESIS',...
Not able to find in the npm registry. Got this below error. Not Found - GET https://registry.npmjs.org/cssparse - Not found
Is there a api to take the json result and recompile back to CSS?
One use case is for documentation. For example, at the top of each CSS file I might include a title and a description. The JSON could then be used to...