Skip to content

antonmedv/eat

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Eat 🧀

CLI for converting anything to JSON.

Eat tries to apply parsers in the next order:

json
 ↪json5
   ↪toml
     ↪yaml
       ↪xml
         ↪html
           ↪ini
             ↪csv
               ↪tsv

Install

npm i -g @medv/eat

Usage

eat [file...]

cat config.yaml | eat
eat *.json
ls | eat

Use eat with fx:

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

Related

  • fx – terminal JSON viewer.

License

MIT

About

Eats anything, spits out JSON 🧀

Resources

License

Stars

Watchers

Forks

Sponsor this project