minijson 0.1.0
Minify JSON files
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
minijson
Minify JSON files fast! Written in D.
4 times faster than jsonminify.
Installation
Nodejs
npm install @aminya/minijson
Dub
dub fetch minijson --config=library
# or
dub fetch minijson --config=executable
CLI Usage
minijson --file file1.json --file file2.json
Node API
import { minify } from "minijson"
await minify(["file1.json", "file2.json"])
D API
import minijson: minify;
minify(["file1.json", "file2.json"]);
Benchmarks
❯ node .\benchmark\node-lib-benchmark.mjs
14,259 ms
❯ node .\benchmark\js-benchmark.mjs
58,686 ms
Contributing
pnpm install
pnpm run build.node
License
The project is licensed under MIT. It was inspired by fkei/JSON.minify.
- Registered by Amin Yahyaabadi
- 0.1.0 released 3 years ago
- aminya/minijson
- MIT
- Copyright © 2021, Amin Yahyaabadi
- Authors:
- Dependencies:
- none
- Versions:
-
1.1.0 2024-Sep-10 1.0.3 2024-Sep-07 1.0.2 2024-Sep-07 1.0.1 2024-Sep-07 1.0.0 2024-Sep-07 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
24 downloads total
-
- Score:
- 0.0
- Short URL:
- minijson.dub.pm