Minify JSON files fast! Supports Comments. Uses D, C, and AVX2 and SSE4_1 SIMD.
MIT License
Bot releases are visible (Hide)
Published by aminya about 1 month ago
Full Changelog: https://github.com/aminya/minijson/compare/v1.0.1...v1.0.2
Published by aminya about 1 month ago
Full Changelog: https://github.com/aminya/minijson/compare/v0.6.2...v1.0.0
Published by aminya almost 3 years ago
Fix Arm Mac fallback
Full Changelog: https://github.com/aminya/minijson/compare/v0.6.1...v0.6.2
Published by aminya almost 3 years ago
Full Changelog: https://github.com/aminya/minijson/compare/v0.6.0...v0.6.1
Published by aminya over 3 years ago
This version makes minijson 4180 times faster than jsonminify. 🚀 It achieves this by using AVX2 and SSE4_1 CPU instructions.
❯ .\dist\minijson-benchmark.exe --benchmark-minifyString --benchmark-minifyFiles
Benchmark minifyString
14 ms
Benchmark minifyFiles
49 ms
❯ node .\benchmark\js-benchmark.mjs
Benchmark minifyString
58.502 seconds
Benchmark minifyFiles
58.703 seconds
Published by aminya over 3 years ago
minijson is now 360 times faster than jsonminify 🚀
❯ node .\benchmark\native-benchmark.mjs
0.163 seconds
❯ node .\benchmark\js-benchmark.mjs
58.818 seconds
Published by aminya over 3 years ago
This version adds support for minifying the JSON files that have comments (single line or multiline).
Published by aminya over 3 years ago
The latest version brings a huge performance improvement. 🚀
In the extensive benchmark suite that minijson was tested on, it is now 55 times faster than jsonminify.
❯ node .\benchmark\native-benchmark.mjs
1.066 seconds
❯ node .\benchmark\js-benchmark.mjs
58.686 seconds
Published by aminya over 3 years ago