scsscommentparser
v0.0.19
Published
Parses scss comments to build documentation
Downloads
36
Readme
ScssCommentParser
Parse /** */
comments and extracts context from SCSS.
Install
npm install --save scsscommentparser
Usage
var ScssCommentParser = require('scsscommentparser');
var annotations = {
_: {
alias: {
'aliasTest': 'annotationTest'
}
},
annotationTest: function ( commentLine ) {
return 'Working';
}
};
var parser = new ScssCommentParser( annotations );
var scss = /* Load Scss */
var comments = parser.parse ( scss );
console.log(comments);