1.3.0 • Published 5 years ago

@slimio/pretty-json v1.3.0

Weekly downloads
23
License
MIT
Repository
github
Last release
5 years ago

pretty-json

version Maintenance MIT dep size Known Vulnerabilities Build Status Greenkeeper badge

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 @slimio/pretty-json
# or
$ yarn add @slimio/pretty-json

Usage example

const prettyJSON = require("@slimio/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

NameRefactoringSecurity RiskUsage
@slimio/isMinorLowType checker
kleurMinorLowTTY color

License

MIT

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago