New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scss-comment-parser

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scss-comment-parser

Parses scss comments to build documentation

  • 0.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.1K
increased by4.66%
Maintainers
4
Weekly downloads
 
Created
Source

scss-comment-parser Build Status

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

Changelog

0.5.0
  • Update to `cdocparser@0.4.0
  • Add support for configuration passed to the extractor.
0.4.0
  • Update to cdocparser@0.3.0 supporting /// comments
  • Include a context.line with start, end value for each detected code part
0.3.2
  • Added context.code to type placeholder.
0.3.1
0.3.0
  • Add placeholder support (thanks to callum)
0.2.4
  • Remove first opening and last closing brace in context.code
0.2.3
  • Fixed wrong code extraction for function and mixin. (See #11)
0.2.2
  • Added context.code to type function and mixin containing the whole code.
0.2.1
  • Fix bug in detection of comment blocks
0.1.2
  • Update dependencys
0.1.1
  • Fix multiline annotations to include @
0.1.0
  • Initial release

FAQs

Package last updated on 11 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc