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

json-format

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

json-format - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

index.js

@@ -74,8 +74,6 @@ /*

if ( indent == null ) {
throw('[' + config.type + '] is not compatible!');
} else {
indentType = new Array((config.size || indent.size) + 1).join(indent.char);
throw new Error('Unrecognized ident type: "' + config.type + '"');
}
var indentType = new Array((config.size || indent.size) + 1).join(indent.char);
return JSONFormat(JSON.stringify(json), indentType);
}
}
{
"name": "json-format",
"version": "0.1.1",
"version": "0.1.2",
"description": "JSON format for good presentation",

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

@@ -13,3 +13,3 @@ json-format

```
var jsonFormat = require('json-format');
var jsonFormat = require('./');
var fs = require('fs');

@@ -16,0 +16,0 @@ var obj = {

@@ -1,2 +0,2 @@

var jsonFormat = require('./');
var jsonFormat = require('json-format');
var fs = require('fs');

@@ -3,0 +3,0 @@ var obj = {

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