underscore-cli
Utility-belt for hacking JSON and Javascript.
Underscore‑CLI is a command‑line tool built on Node.js that lets users manipulate JSON and JavaScript data directly from the shell. It can act as a simple pretty‑printer or as a full‑featured JavaScript processor, supporting commands such as `print`, `extract`, `pluck`, `map`, and `process`. By exposing the complete functionality of underscore.js, underscore.string, json:select, and CoffeeScript, it enables one‑liners comparable to perl ‑pe for structured data.
The utility is designed for developers who need to inspect, transform, or filter JSON streams without writing boilerplate Node code. It reads from stdin, files, or literal JSON strings, and can output in various formats, including colored pretty‑print, strict JSON, or plain text. Multiple invocations can be chained to build pipelines, and shortcuts exist for common operations like mapping values.
Installation is straightforward via npm (`npm install -g underscore-cli`) after obtaining Node.js, which is a small download. The tool provides extensive command‑line help and examples, making it a flexible, lightweight option for JSON‑centric command‑line workflows.
Reviews
Loading reviews…
Similar apps
Terminals & CLI
ramda-cli
Process data with functional pipelines.
Terminals & CLI
yaml-cli
Query/update YAML.
Terminals & CLI
parse-columns-cli
Parse text columns to JSON.
Terminals & CLI
strip-json-comments-cli
Strip comments from JSON.
Terminals & CLI
jq
JSON processor.
Terminals & CLI
jp
JSON parser.