Sha256: 8bfb1825ceaa31e04eb55d48796bd1ebb599d61921f9ed632238482258c2ade3

Contents?: true

Size: 177 Bytes

Versions: 328

Compression:

Stored size: 177 Bytes

Contents

var stringify = require('../');

var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
var s = stringify(obj, function (a, b) {
    return a.key < b.key ? 1 : -1;
});
console.log(s);

Version data entries

328 entries across 180 versions & 26 rubygems

Version Path
immosquare-cleaner-0.1.21 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.20 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.20 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.19 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.19 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.18 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.18 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.17 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.17 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.16 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.16 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.14 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.14 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.13 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.13 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.12 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.12 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.11 node_modules/fast-json-stable-stringify/example/key_cmp.js
immosquare-cleaner-0.1.11 node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js
immosquare-cleaner-0.1.10 node_modules/fast-json-stable-stringify/example/key_cmp.js