New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

broccoli-extract-comments

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-extract-comments

Extract code comments from source files

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

broccoli-extract-comments

Extract code comments from source files

This broccoli-plugin let's you extract code comments and write into an output-file.

Basic Usage

// Brocfile.js
var extractComments = require('broccoli-extract-comments');

var commentsTree = extractComments('src', {
  inputFiles: [
    '**.*'
  ],
  outputFile: 'comments.txt'
});

module.exports = commentsTree;

Options

options.allowNone

Type: Boolean Default value: false

Allows for empty file paths in broccoli's globbing pattern

options.raw

Type: Boolean Default value: false

Specifies whether to output raw comments instead of extracted text.

options.filter

Type: Function Default value: null

Specify a callback-function to filter desired comments, i.e.:

function(comment) {
  return comment.text.indexOf('Hello World!') >= 0;
}

options.outputFile

Type: String Default value: "comments.txt"

Specifies destination file for extracted comments

options.separator

Type: String Default value: "\n"

Specifies separator for concatenated comments

Keywords

broccoli-plugin

FAQs

Package last updated on 13 Jan 2015

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