css-scanner
Scanner for css element, refer to w3c css
var CssScanner = ;
install
npm install css-scanner --save
test
mocha
API
CssScanner(str, filepath)
CssScanner is inherit to Writable stream
.
- {string|undefined}
str
The css code string or empty - {string}
filepath
it's useful for see error message.
var css = 'a{color:red;}'; // or use pipevar css = ;fs;
on
inherit the System events module. List emit event name
comment
rule
@meida
if the name is undefined, it's means media close, otherwise media open@keyframes
if the name is undefined, it's means keyframes close, otherwise keyframes open@import
@charset
css; css; css; css; css; css;
scanner()
Start to scanner
// stringcss; // pipecss;