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

gulp-script-inject

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-script-inject - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

9

index.js

@@ -12,2 +12,3 @@ var through = require("through2");

var varname = opts.varname || 'yamlPath';
var ext = opts.ext || '.json';
var snippet = "<script></script>";

@@ -32,6 +33,10 @@

for(var i =0; i< jsonfiles.length; i++){
var name = jsonfiles[i].replace(/^\d./, '').split('.')[0]
snippet+="{name: \""+name+"\", path: \"json/" + jsonfiles[i]+ "\"},"
if(path.extname(jsonfiles) == ext){
var name = jsonfiles[i].replace(/^\d./, '').split('.')[0]
snippet+="{name: \""+name+"\", path: \"json/" + jsonfiles[i]+ "\"},"
}
}

@@ -38,0 +43,0 @@

{
"name": "gulp-script-inject",
"version": "0.0.4",
"version": "0.0.5",
"description": "A gulp plugin to inject JS variables after reading from a directory",

@@ -5,0 +5,0 @@ "keywords": [

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