JSPM

@slimio/pretty-json

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q53062F
  • License MIT

Stdout JSON in your terminal

Package Exports

  • @slimio/pretty-json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@slimio/pretty-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

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

License

MIT