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

gulp-comments

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-comments - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

9

index.js

@@ -5,3 +5,3 @@ var gutil = require('gulp-util');

var through = require('through2');
module.exports = function() {
module.exports = function(filter) {
return through.obj(function(file, encoding, callback) {

@@ -13,2 +13,9 @@ if (file.isBuffer()) {

if(comments) {
if (filter) {
for (var i = comments.length - 1; i >= 0; i--) {
if (comments[i].indexOf(filter) >= 0) {
comments.splice(i, 1);
}
}
}
contents = comments.join('\n\n');

@@ -15,0 +22,0 @@ }

2

package.json
{
"name": "gulp-comments",
"version": "1.0.6",
"version": "1.1.0",
"description": "Exports all jsdocs-style comments from either .js or .ts files",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,3 +31,2 @@ # gulp-comments

});
```

@@ -48,1 +47,10 @@

```
### Options
An optional **filter** parameter can be added when calling `comments()`. Any jsdoc block containing this string will be _excluded_ from publishing. Can be useful for creating custom documentation builds.
```js
//...
.pipe(comments('@internal'))
// ...
```
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