Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fisker/left-phalange
Convert data between YAML, TOML, JSON, JSON5, INI, CSV, ES Module, CommonJS
https://github.com/fisker/left-phalange
Last synced: 5 days ago
JSON representation
Convert data between YAML, TOML, JSON, JSON5, INI, CSV, ES Module, CommonJS
- Host: GitHub
- URL: https://github.com/fisker/left-phalange
- Owner: fisker
- License: mit
- Created: 2019-05-24T08:27:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T09:21:34.000Z (17 days ago)
- Last Synced: 2024-10-30T10:27:11.657Z (17 days ago)
- Language: JavaScript
- Homepage:
- Size: 1.13 MB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 51
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# left-phalange
> Convert data between YAML, TOML, JSON, JSON5, INI, CSV, ES Module, CommonJS
## Quick Overview
```sh
echo left="phalange" | npx left-phalange --input toml --pretty
```## Install
```sh
npm install --global left-phalange
```## Usage
```text
lp --helpUsage
left-phalange
lpOptions
-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 versionExamples
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
- [left-phalange-api](https://github.com/fisker/left-phalange-api) - API for this module