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

grunt-facebookhtml

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-facebookhtml - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

29

package.json
{
"name": "grunt-facebookhtml",
"version": "0.0.5",
"version": "0.0.6",
"author": "",
"license": "ISC",
"readme": "ERROR: No README data found!",
"_id": "grunt-facebookhtml@0.0.2",
"_from": "grunt-facebookhtml@~0.0.1",
"_id": "grunt-facebookhtml@0.0.4",
"_from": "grunt-facebookhtml@0.0.4",
"dependencies": {
"handlebars": "~2.0.0-alpha.4"
}
},
"dist": {
"shasum": "65cdca86825baf6ed0d4b686d158d5709b46f379",
"tarball": "http://registry.npmjs.org/grunt-facebookhtml/-/grunt-facebookhtml-0.0.2.tgz"
},
"_npmVersion": "1.3.21",
"_npmUser": {
"name": "speaktosteve",
"email": "speaktosteve@gmail.com"
},
"maintainers": [
{
"name": "speaktosteve",
"email": "speaktosteve6@gmail.com"
}
],
"directories": {},
"_shasum": "52844b3b620e77162cdbfa8763c5103a8d7ed766",
"_resolved": "https://registry.npmjs.org/grunt-facebookhtml/-/grunt-facebookhtml-0.0.4.tgz",
"readme": "ERROR: No README data found!",
"scripts": {}
}

13

tasks/facebookhtml.js

@@ -8,3 +8,2 @@ var Handlebars = require('handlebars');

grunt.registerMultiTask('facebookhtml', 'generates static files for facebook links',function(target){
var done = this.async();

@@ -20,2 +19,3 @@

destFolder = this.files[0].dest,
env = this.env,
template,

@@ -25,6 +25,8 @@ data = [],

for(helper in options.helpers){
Handlebars.registerHelper(helper, options.helpers[helper]);
}
Object.keys(options.helpers).forEach(function(helper){
Handlebars.registerHelper(helper, options.helpers[helper]);
});
function generateTemplates(){

@@ -39,3 +41,4 @@ data.forEach(generateTemplate);

var output = template(item),
outputfile = path.join(destFolder, item.id + '.html');
outputfile = path.join(destFolder, item.id + '.' + options.env + '.html');
grunt.log.writeln('output: ' + item.id + '.' + options.env + '.html');
fs.writeFileSync(outputfile, output, {encoding:'utf8'});

@@ -42,0 +45,0 @@ }

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