1.0.3 • Published 4 years ago

@patarapolw/prettyprint v1.0.3

Weekly downloads
47
License
MIT
Repository
-
Last release
4 years ago

prettyprint

This project shows how we can prettyprint beyond JSON.stringify(obj, null, 2) in Node.js

  • With colors
  • Multiline strings

As for the core code, you are free to copy the code from /src/index.ts.

Local installation

npm i @patarapol/prettyprint --dev
import { pp } from '@patarapolw/prettyprint'
pp(OBJECT)

CLI installation

Run it directly with npx

npx github:patarapolw/prettyprint OBJECT_AS_JS_EVAL

Or, install as global

npm i -g @patarapolw/prettyprint
pp OBJECT_AS_JS_EVAL
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago