1.1.7 • Published 2 years ago

@timbophillips/colorjson v1.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago