sindresorhus / parse-columns-cli

Parse text columns, like the output of unix commands. Returns JSON that you can manipulate with tools like jq or underscore-cli.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse-columns-cli

Parse text columns, like the output of unix commands. Returns JSON that you can manipulate with tools like jq or underscore-cli.

Install

npm install --global parse-columns-cli

Usage

$ parse-columns --help

  Usage
    $ parse-columns <string>
    $ echo <string> | parse-columns

  Example
    $ lsof -i | parse-columns | underscore --outfmt=text pluck NAME
    *:*
    *:62886
    *:*
    localhost:9050 (LISTEN)

Related

About

Parse text columns, like the output of unix commands. Returns JSON that you can manipulate with tools like jq or underscore-cli.

License:MIT License


Languages

Language:JavaScript 100.0%