1.1.7 • Published 3 years ago

@timbophillips/colorjson v1.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

colorjson

Typescript node library and command line app using chalk and json-colorizer together to print easy to read JSON for the command line

install

npm install -g @timbophillips/colorjson

usage

pipe stdin to the command line script

echo '{"name":"Katie","status":"Average"}' | colorjson -s

output

{
  "name": "Katie",
  "status": "Average"
}

submit arguments to the command line script

colorjson '{"name":"Katie","status":"Average"}' '{"name":"Tim","status":"Legend"}'

output

{
  "name": "Katie",
  "status": "Average"
}
{
  "name": "Tim",
  "status": "Legend"
}

use in node

import {colorjson} from '@timbophillips/colorjson'

console.log(colorjson({
    name: "Ben",
    status: "Not bad"
}))
1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago