left-phalange

3.0.2 • Public • Published

left-phalange

Convert data between YAML, TOML, JSON, JSON5, INI, CSV, ES Module, CommonJS

Quick Overview

echo left="phalange" | npx left-phalange --input toml --pretty

Install

npm install --global left-phalange

Usage

lp --help

  Usage
    left-phalange <file>
    lp <file>

  Options
    -i, --input           Input Data type
    -o, --output          Output Data type
    -p, --pretty          Pretty output
    -C, --copy            Copy output to clipboard
    -h, --help            Show this help info
    -v, --version         Show version

  Examples
    lp data.toml > data.json
    cat data.yaml | lp -p

Options

input

  • yaml (default value for Stdin, YAML is superset of JSON, so it should work for JSON as well)
  • json
  • ini
  • js (CommonJS or ESModule, file only, not stdin)
  • json5
  • toml
  • csv
  • esm (ESModule, file only, not stdin)
  • cjs (CommonJS, file only, not stdin)

output

  • json (default)
  • yaml
  • ini
  • json5
  • toml
  • csv
  • cjs
  • esm

Related

Package Sidebar

Install

npm i left-phalange

Weekly Downloads

3

Version

3.0.2

License

MIT

Unpacked Size

7.65 kB

Total Files

8

Last publish

Collaborators

  • fisker