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

browserify-hogan

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-hogan - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

.jshintrc

12

index.js

@@ -6,15 +6,15 @@ var hogan = require('hogan.js'),

var wrap = function(template) {
return 'module.exports=(function() {var Template = require(\'hogan.js/lib/template\').Template;var template = new Template(' + template + ');return function(data) {return template.render(data)}}());'
var wrap = function (template) {
return 'module.exports = new (require(\'hogan.js/lib/template\').Template)(' + template + ');'
}
module.exports = function(file) {
if (!filenamePattern.test(file)) return through()
module.exports = function (file) {
if (!filenamePattern.test(file)) return through();
var input = ''
var write = function(buffer) {
var write = function (buffer) {
input += buffer
}
var end = function() {
var end = function () {
this.queue(wrap(hogan.compile(input, {asString: true})))

@@ -21,0 +21,0 @@ this.queue(null)

@@ -11,3 +11,3 @@ {

],
"version": "0.0.3",
"version": "0.1.0",
"license": "MIT",

@@ -18,6 +18,12 @@ "repository": {

},
"scripts": {
"test": "node test/test"
},
"dependencies": {
"through": "~2.2.7",
"hogan.js": "~2.0.0"
},
"devDependencies": {
"browserify": "~3.30.1"
}
}
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