js-yaml

YAML 1.2 parser and serializer

js-yaml downloads js-yaml version js-yaml license

js-yamlSimilar Packages:

Npm Package Weekly Downloads Trend

3 Years
🌟 Show real-time usage chart on js-yaml's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of js-yaml](https://npm-compare.com/img/npm-trend/THREE_YEARS/js-yaml.png)](https://npm-compare.com/js-yaml#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 Show GitHub stars trend chart on js-yaml's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of js-yaml](https://npm-compare.com/img/github-trend/js-yaml.png)](https://npm-compare.com/js-yaml)

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
js-yaml06,6281.57 MB413 days agoMIT

README for js-yaml

js-yaml

CI NPM version

YAML 1.2 parser and serializer for JavaScript.

Online demo

  • Supports the YAML 1.2 and YAML 1.1 specifications.
  • Passes the entire YAML Test Suite.

Documentation >>

Install
npm install js-yaml
Usage
import { load } from 'js-yaml'

try {
  const document = load('greeting: hello')
  console.log(document.greeting)
} catch (e) {
  console.error(e)
}
import { dump } from 'js-yaml'

const source = dump({ greeting: 'hello' })
console.log(source)

More usage examples.