scsscommentparser

0.0.19 • Public • Published

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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.19
    1
    • latest

Version History

Package Sidebar

Install

npm i scsscommentparser

Weekly Downloads

2

Version

0.0.19

License

MIT

Last publish

Collaborators

  • fweinb