项目
在 GitHub 查看
nodeca/js-yaml
关于
JavaScript YAML 解析器和序列化器。速度非常快。
开发工具实测星标增长
- 24小时
- +1
- 7天
- -1
- 15天
- -1
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文js-yaml
YAML 1.2 parser and serializer for JavaScript.
- 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)
探索相关项目
加载中…