sorted-json
Advanced tools
Comparing version 0.2.5 to 0.2.6
{ | ||
"name": "sorted-json", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"main": "sorted-json.js", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -60,9 +60,9 @@ # sorted-json-js | ||
{ | ||
sortBy : null, // Specifies a function that defines the sort order. Same to `compareFunction` parameter in `Array.prototype.sort(compareFunction)` | ||
sortKey : true, // Sort the keys in `obj` or not | ||
sortArray: true, // Sort the array elements in `obj or not | ||
sortBy : undefined, // Specifies a function that defines the sort order. Same to `compareFunction` parameter in `Array.prototype.sort(compareFunction)` | ||
sortKey : true, // Sort the keys in `obj` or not | ||
sortArray: true, // Sort the array elements in `obj or not | ||
stringify: false, // Output the stringified `obj` or not (Using `JSON.stringify()`) | ||
replacer : null, // Parameter for `JSON.stringify()` | ||
space : null, // Parameter for `JSON.stringify()` | ||
stringify: false, // Output the stringified `obj` or not (Using `JSON.stringify()`) | ||
replacer : null, // Parameter for `JSON.stringify()` | ||
space : null, // Parameter for `JSON.stringify()` | ||
} | ||
@@ -69,0 +69,0 @@ ``` |
@@ -6,3 +6,3 @@ 'use strict' | ||
var DEFAULT_SORT_OPTIONS = { | ||
sortBy : null, | ||
sortBy : undefined, | ||
sortKey : true, | ||
@@ -9,0 +9,0 @@ sortArray: false, |
@@ -115,2 +115,2 @@ var assert = require('assert'); | ||
}); | ||
}); | ||
}); |
9520
208