UNPKG

@aminya/minijson

Version:

Minify JSON files blazing fast, removing comments/whitespace.

109 lines 3.24 kB
{ "name": "@aminya/minijson", "version": "1.1.3", "description": "Minify JSON files blazing fast, removing comments/whitespace.", "homepage": "https://github.com/aminya/minijson", "repository": { "type": "git", "url": "https://github.com/aminya/minijson.git" }, "license": "MIT", "author": "Amin Yahyaabdi", "main": "./dist/lib.js", "browser": "./dist/index.html", "bin": { "minijson": "dist/cli.js" }, "files": [ "dist", "src/node" ], "prettier": "prettier-config-atomic", "dependencies": { "jsonminify": "^0.4.2" }, "devDependencies": { "@types/jasmine": "^5.1.8", "@types/node": "22.15.20", "eslint-config-atomic": "^1.22.1", "jasmine": "^5.7.1", "jasmine-spec-reporter": "^7.0.0", "mjs-dirname": "^1.0.0", "parcel": "^2.15.1", "prettier-config-atomic": "^4.0.0", "servor": "^4.0.2", "shx": "0.4.0", "strip-json-comments": "^5.0.2", "typescript": "^5.8.3", "undici-types": "^7.10.0" }, "keywords": [ "json", "minify", "jsonminify", "jsonmin", "fast", "minijson", "mini", "min", "minifier", "jsonc", "comment", "comments", "remove", "delete", "multiline", "strip", "trim", "parse", "json5", "js", "build", "build-tool", "minijs", "zip", "small", "tiny", "blazing", "d", "c", "simd", "avx", "sse", "sse3", "sse4", "sse4.1", "sse4.2", "avx2", "rust", "bandwith" ], "targets": { "browser": { "context": "browser", "includeNodeModules": true } }, "scripts": { "build": "dub build --config=executable", "build.benchmark": "dub build --config=benchmark --build release-nobounds --compiler=ldc2", "build.browser": "pnpm run build.wasm && parcel build --target browser ./src/browser/index.html", "build.node": "pnpm run build.release && node ./src/node/build.js && pnpm run build.node.js", "build.node.js": "tsc -p ./src/node/tsconfig.json", "build.profile": "pnpm build --build profile --compiler=ldc2 && node ./src/node/build.js && pnpm run build.node.js", "build.release": "pnpm build --build release-nobounds --compiler=ldc2", "build.wasm": "ldc2 ./src/wasm/wasm.d ./src/native/lib.d --od ./dist --O3 --mtriple=wasm32-unknown-unknown-wasm", "clean": "shx rm -rf ./dist ./despacer/build/ ./test/fixtures/*/*-minified.json", "format": "prettier -l --cache --write . && pnpm run format.d", "format.d": "dub run --build=release --quiet dfmt -- --soft_max_line_length 110 --indent_size 2 --inplace ./src ./benchmark", "lint": "eslint . --fix", "start.benchmark.js": "node ./benchmark/js-benchmark.mjs", "start.benchmark.node": "node ./benchmark/native-benchmark.mjs", "start.browser": "servor ./dist/ --browse --reload", "start.node": "node ./dist/node/cli.js", "start.profile": "shx rm -rf ./trace.* && pnpm run start.benchmark.node && profdump.exe --dot trace.log trace.dot && dot -Tsvg trace.dot -o trace.svg && ./trace.svg", "test": "pnpm run build.node && jasmine ./test/index-test.mjs", "test.format": "prettier -l --cache . --check", "test.lint": "eslint ." } }