grunt-unicorn
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-unicorn", | ||
"description": "Always use grunt, unless you can use grunt-unicorn. Then always use grunt-unicorn.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/russmatney/grunt-unicorn", | ||
@@ -37,5 +37,2 @@ "author": { | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.1" | ||
}, | ||
"keywords": [ | ||
@@ -42,0 +39,0 @@ "gruntplugin" |
@@ -5,3 +5,3 @@ # grunt-unicorn | ||
``` | ||
M M | ||
@@ -39,2 +39,3 @@ . M MMM MMM. | ||
MM MMMM | ||
``` | ||
@@ -41,0 +42,0 @@ ## Getting Started |
@@ -12,6 +12,9 @@ /* | ||
module.exports = function(grunt) { | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
grunt.registerMultiTask('unicorn', 'Always use grunt, unless you can use grunt-unicorn. Then always use grunt-unicorn.', function() { | ||
var asciicorn = grunt.file.read('asciicorn.txt'); | ||
var relativePath = path.join(path.dirname(fs.realpathSync(__filename)), '../asciicorn.txt'); | ||
var asciicorn = grunt.file.read(relativePath); | ||
grunt.log.writeln(asciicorn); | ||
@@ -18,0 +21,0 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
10819
0
81
74
1