Examples

jstr --help
jstr package.json
jstr -s 2 package.json # 2 spaces

Copy file content

jstr -c package.json

Omit output fields

jstr -o name,version package.json

Map output fields

jstr -m '{"name":"foo"}' package.json
jstr package.json 'x => x.name'

Multi-line parser callback

Asynchronous parser callback

Using ts-belt

Reading from a piped command

Generating a CSV file

Creating a text file using data from the JSON input

Last updated