Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@throw-out-error/data-cli

creepinson10ISC1.0.2

A cli tool for manipulating and querying data

readme

Data CLI

A command-line tool for querying and manipulating data. Currently only supports json5.

Usage

Export Usage

toe-data ex <format> [query]

Possible formats:

  • ln: prints the values of a json array as seperate lines
  • sp: prints the values of a json array seperated by spaces
  • none: prints as normal json

If you want to you can specify a query after the format such as joe/*.

Example

echo ["joe", "mom"] | toe-data ex ln

Output:

joe
mom