New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-fix

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-fix - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

readme.md

12

index.js

@@ -5,8 +5,16 @@ #!/usr/bin/env node

var program = require("commander");
var packagejson = require("./package.json");
program
.version("0.0.0")
.version(packagejson.version)
.option('-s, --spaces [amount]', 'Number of spaces for indentation')
.usage("<file>")
.parse(process.argv);
var spaces = program.spaces;
if (spaces === undefined) {
spaces = "4";
}
var spaces = parseInt(spaces);
program.args.forEach(parse);

@@ -17,4 +25,4 @@

eval("var js = " + str);
var json = JSON.stringify(js, null, 4);
var json = JSON.stringify(js, null, spaces);
fs.writeFileSync(path, json);
}

2

package.json
{
"name": "json-fix",
"version": "0.1.0",
"version": "0.2.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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