Socket
Socket
Sign inDemoInstall

grunt-add-comment

Package Overview
Dependencies
30
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

5

package.json
{
"name": "grunt-add-comment",
"description": "Prepend or append some comments to your autogenerated files",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/PillowPillow/grunt-add-comment",

@@ -14,3 +14,4 @@ "author": {

"inject",
"inject comments"
"inject comments",
"gruntplugin"
],

@@ -17,0 +18,0 @@ "repository": {

7

tasks/add_comment.js

@@ -31,2 +31,4 @@ /*

var count = 0;
var comment = '', content, extension, commentSyntax;

@@ -56,4 +58,7 @@ this.files.forEach(function(el) {

grunt.file.write(el.dest, content);
grunt.log.writeln('File "' + el.dest + '" edited.');
grunt.log.debug('File "' + el.dest + '" edited.');
count++;
});
grunt.log.ok(count + ' files edited');
});

@@ -60,0 +65,0 @@ });

@@ -0,3 +1,5 @@

// this file is autogenerated
// this file is autogenerated 2
console.log('an amazing test');
// this file is autogenerated
// this file is autogenerated 2
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc