https://github.com/kantord/emuto-cli
CLI for emuto
https://github.com/kantord/emuto-cli
Last synced: 6 months ago
JSON representation
CLI for emuto
- Host: GitHub
- URL: https://github.com/kantord/emuto-cli
- Owner: kantord
- License: mit
- Created: 2019-03-01T20:59:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:57:18.000Z (almost 2 years ago)
- Last Synced: 2025-04-06T13:06:49.151Z (6 months ago)
- Language: JavaScript
- Homepage: https://kantord.github.io/emuto/
- Size: 2.04 MB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
emuto-cli
=========JSON processor - transform and query JSON files using the emuto language
[](https://oclif.io)
[](https://npmjs.org/package/emuto-cli)
[](https://npmjs.org/package/emuto-cli)
[](https://github.com/kantord/emuto-cli/blob/master/package.json)# Usage
USAGE
$ emuto [FILTER]OPTIONS
-I, --input-feature=head special features for the input format
-c, --color color output
-d, --input-delimiter=input-delimiter delimiter for dsv input
-e, --edit-file=edit-file edit a file in place
-h, --help show CLI help
-i, --input=input [default: json] input format. Valid: json, raw, csv, tsv, dsv
-o, --output=output [default: json] output format. Valid: json, raw
-s, --script-file=script-file read script from file
-u, --ugly don't prettify output
-v, --version show CLI versionDESCRIPTION
Example:cat input.json | emuto '$.characters | map ($ => $ { name gender})'
The shebang for emuto is #! emuto -s
wsp format: lines with columns separated by whitespace.
Empty columns are not supported.# Setup
```
npm install -g emuto emuto-cli
```