Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extract-comments

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-comments - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0

4

index.js

@@ -12,2 +12,3 @@ /*!

var mapFiles = require('map-files');
var isWhitespace = require('is-whitespace');

@@ -79,2 +80,5 @@ /**

if (!isComment && o.end && i > o.end && afterCount < 2) {
if (!isWhitespace(line)) {
o.codeStart = i;
}
o.after += line + '\n';

@@ -81,0 +85,0 @@ afterCount++;

3

package.json
{
"name": "extract-comments",
"description": "Extract code comments from string or from a glob of files.",
"version": "0.5.1",
"version": "0.6.0",
"homepage": "https://github.com/jonschlinkert/extract-comments",

@@ -40,2 +40,3 @@ "author": {

"dependencies": {
"is-whitespace": "^0.2.0",
"map-files": "^0.3.0"

@@ -42,0 +43,0 @@ },

@@ -15,3 +15,3 @@ # extract-comments [![NPM version](https://badge.fury.io/js/extract-comments.svg)](http://badge.fury.io/js/extract-comments)

### [extract](index.js#L40)
### [extract](index.js#L41)

@@ -36,3 +36,3 @@ Extract code comments from the given `string`.

### [.fromFiles](index.js#L112)
### [.fromFiles](index.js#L116)

@@ -39,0 +39,0 @@ Extract code comments from a file or glob of files. You may also pass a custom `rename` function on the options to change the key of each object returned.

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