minijson 0.1.1

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.

CI

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.

Authors:
  • Amin Yahyaabadi
Dependencies:
none
Versions:
0.6.2 2021-Dec-30
0.6.1 2021-Dec-30
0.6.0 2021-Jul-11
0.5.1 2021-Jul-10
0.5.0 2021-Jul-07
Show all 17 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 24 downloads total

Score:
0.0
Short URL:
minijson.dub.pm