@tduyng/prettyoutput
Version:
Library to format JSON objects into a colorful, YAML-style output. Ideal for pretty printing logs with high performance.
100 lines (99 loc) • 3.19 kB
JSON
{
"author": "Nadim <nadim.boustani@gmail.com> (https://github.com/bnadim)",
"name": "@tduyng/prettyoutput",
"description": "Library to format JSON objects into a colorful, YAML-style output. Ideal for pretty printing logs with high performance.",
"version": "2.0.1",
"homepage": "http://github.com/tduyng/pretty-output",
"keywords": [
"json",
"javascript",
"typescript",
"log",
"cli",
"pretty",
"formatting",
"colors",
"output",
"yaml",
"pretty-print",
"logging",
"performance",
"json-format",
"json-pretty-print"
],
"maintainers": [
{
"name": "tduyng"
}
],
"engines": {
"node": ">=20"
},
"repository": {
"type": "git",
"url": "http://github.com/tduyng/pretty-output.git"
},
"bugs": {
"url": "http://github.com/tduyng/pretty-output/issues"
},
"type": "module",
"files": [
"/lib",
"/bin"
],
"main": "lib/esm/index.js",
"types": "lib/esm/index.d.ts",
"exports": {
".": {
"import": {
"default": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts"
},
"require": {
"default": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts"
}
}
},
"license": "MIT",
"scripts": {
"lint": "biome check --write",
"check": "biome check",
"test": "node --import tsx --test tests/index.test.ts",
"coverage": "c8 -r=cobertura -r=lcov -r=text-summary node --import tsx --test tests/index.test.ts",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc -p tsconfig.lib.json --outDir lib/esm",
"build:cjs": "tsc -p tsconfig.lib.json --module CommonJS --moduleResolution Node --verbatimModuleSyntax false --outDir lib/cjs",
"postbuild:cjs": "echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"benchmark": "tsx ./benchmark/benchmark.ts",
"benchmark-deno": "deno -A --unstable-sloppy-imports ./benchmark/benchmark.ts",
"benchmark-bun": "bun ./benchmark/benchmark.ts",
"changelog": "git cliff",
"examples": "tsx ./examples/example.ts",
"postinstall": "git config core.hooksPath ./.githooks || true",
"check-typing": "tsc -p tsconfig.json --noEmit"
},
"bin": {
"pretty": "./bin/pretty_output.js",
"pretty-cjs": "./bin/pretty_output.cjs",
"prettyoutput": "./bin/pretty_output.js",
"prettyoutput-cjs": "./bin/pretty_output.cjs"
},
"dependencies": {
"commander": "13.x"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@poppinss/dumper": "0.6.2",
"@types/columnify": "1.5.4",
"@types/node": "22.13.4",
"@types/prettyjson": "0.0.33",
"c8": "10.1.3",
"columnify": "1.6.0",
"commitlint": "19.7.1",
"prettyjson": "1.2.5",
"prettyoutput": "1.2.0",
"tsx": "4.19.3",
"typescript": "5.7.3"
}
}