Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
```