1.0.2 • Published 3 years ago

stdin2json v1.0.2

Weekly downloads
80
License
MIT
Repository
github
Last release
3 years ago

stdin2json

Command-line tool for converting anything to JSON.

Features

  • Eat everything, spits out json
  • Supports json, yaml, toml, xml, ini, cli tables
  • Formatting and highlighting
  • Standalone binary

Install

$ npm install -g stdin2json

Usage

$ stdin2json resp.xml > resp.json

$ cat config.yaml | stdin2json > config.json

$ stdin2json deps.toml

$ ps | eat | fx .PID

Other examples

Use it with fx tool for extracting needed fields.

$ cat response.xml | eat | fx .Document.Title

Related

  • fx – cli JSON processor on JS
  • any-json - alternative cli tool for converting formats

License

MIT