canonical-json
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -220,2 +220,1 @@ | ||
module.exports = stringify | ||
@@ -31,2 +31,2 @@ | ||
return JSON.stringify(copyObjectWithSortedKeys(object)) | ||
} | ||
} |
{ | ||
"name": "canonical-json", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "a canonical json implementation", | ||
@@ -10,5 +10,8 @@ "main": "index.js", | ||
}, | ||
"repository": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mirkokiefer/canonical-json.git" | ||
}, | ||
"author": "Mirko Kiefer <mail@mirkokiefer.com>", | ||
"license": "BSD" | ||
} |
@@ -22,9 +22,7 @@ #Canonical JSON | ||
``` | ||
native JSON.stringify: 75 ms | ||
js JSON.stringify with sorted keys: 308 ms | ||
copy and native JSON.stringify with sorted keys: 291 ms | ||
``` | ||
- native JSON.stringify: `75 ms` | ||
- js JSON.stringify with sorted keys ([implementation](https://github.com/mirkok/canonical-json/blob/master/index.js)): `308 ms` | ||
- copy and native JSON.stringify with sorted keys ([implementation](https://github.com/mirkok/canonical-json/blob/master/index2.js): `291 ms` | ||
The tests were run in Node.js on a 2011 MacBook Pro. | ||
Performance test source: [test/performance.js](https://github.com/mirkok/canonical-json/blob/master/test/performance.js) |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
12915
283
1
28