UNPKG

@tduyng/prettyoutput

Version:

Library to format JSON objects into a colorful, YAML-style output. Ideal for pretty printing logs with high performance.

92 lines 2.71 kB
{ "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.7", "homepage": "http://github.com/tduyng/prettyoutput", "keywords": [ "json", "javascript", "typescript", "log", "cli", "pretty", "formatting", "colors", "output", "yaml", "pretty-print", "logging", "performance", "json-format", "json-pretty-print" ], "author": "Nadim <nadim.boustani@gmail.com> (https://github.com/bnadim)", "maintainers": [ { "name": "tduyng" } ], "repository": { "type": "git", "url": "http://github.com/tduyng/prettyoutput.git" }, "bugs": { "url": "http://github.com/tduyng/prettyoutput/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", "bin": { "pretty": "./bin/pretty_output.js", "pretty-cjs": "./bin/pretty_output.cjs", "prettyoutput": "./bin/pretty_output.js", "prettyoutput-cjs": "./bin/pretty_output.cjs" }, "devDependencies": { "@biomejs/biome": "2.4.14", "@poppinss/dumper": "0.7.0", "@types/columnify": "1.5.4", "@types/node": "25.6.0", "@types/prettyjson": "0.0.33", "c8": "11.0.0", "columnify": "1.6.0", "commitlint": "20.5.3", "prettyjson": "1.2.5", "tsx": "4.21.0", "typescript": "6.0.3" }, "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 Bundler --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", "hook": "git config core.hooksPath ./.githooks || true", "check-typing": "tsc -p tsconfig.json --noEmit" } }