Skip to content

TopCli/Pretty-JSON

Repository files navigation

pretty-json

version Maintenance mit OpenSSF Scorecard build

Stdout JSON in your terminal with colors. This package has been created to stdout clean and beautiful JSON in the SlimIO CLI.

Requirements

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i @topcli/pretty-json
# or
$ yarn add @topcli/pretty-json

Usage example

import prettyJSON from "@topcli/pretty-json";

prettyJSON({
    foo: "bar",
    hello: "world!",
    arr: [1, 2, 3]
});

It will produce the following stdout:

stdout

API

prettyJSON(obj: object): void

Stdout a given JSON Object (Plain Object, Objects Prototype of Object or Array).

Dependencies

Name Refactoring Security Risk Usage
@slimio/is Minor Low Type checker
kleur Minor Low TTY color

License

MIT

About

Stdout JSON in your terminal

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published