VibeHunt
Back to browse
underscore-cli

underscore-cli

Utility-belt for hacking JSON and Javascript.

Source

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

Sign in to leave a review.

Loading reviews…

Similar apps