json-format
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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 = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4028