Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inkdropapp/cson-to-yaml
A quick converter from CSON to YAML
https://github.com/inkdropapp/cson-to-yaml
Last synced: 20 days ago
JSON representation
A quick converter from CSON to YAML
- Host: GitHub
- URL: https://github.com/inkdropapp/cson-to-yaml
- Owner: inkdropapp
- Created: 2023-06-03T13:42:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-03T14:02:57.000Z (over 1 year ago)
- Last Synced: 2024-04-09T15:12:16.305Z (9 months ago)
- Language: TypeScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A quick converter from CSON to YAML
```sh
npm i @inkdropapp/cson-to-yaml
```## Usage
```js
import { cson2yaml } from '../'
import YAML from 'js-yaml'const cson = `array: [
1
2
3
]`
const yaml = cson2yaml(cson)
const json = YAML.load(yaml)
```