yawn-yaml:保留评论和样式的YAML解析器

时间:2021-05-14 05:03:46
【文件属性】:
文件名称:yawn-yaml:保留评论和样式的YAML解析器
文件大小:79KB
文件格式:ZIP
更新时间:2021-05-14 05:03:46
JavaScript YAWN YAML 保留评论和样式的YAML解析器 用法 // If you use ES2015 modules import YAWN from 'yawn-yaml' ; // If you use CommonJS modules const YAWN = require ( 'yawn-yaml/cjs' ) let str = ` # my comment value: 1 # the value is here! ` ; let yawn = new YAWN ( str ) ; yawn . json = { value : 2 } ; // value in `yawn.yaml` is now changed. console . log ( yawn . yaml ) ; // => // # my comment // value: 2 # the value i
【文件预览】:
yawn-yaml-master
----.travis.yml(18B)
----.eslintrc(13KB)
----jsconfig.json(88B)
----package.json(1KB)
----.github()
--------workflows()
----test()
--------.eslintrc(83B)
--------object.js(5KB)
--------end-to-end.js(722B)
--------remark.js(5KB)
--------lint.js(153B)
--------deep.js(2KB)
--------number.js(2KB)
--------end-to-end()
--------array.js(4KB)
--------string.js(859B)
----index.html(48B)
----LICENSE(1KB)
----dist()
--------yawn.js(52KB)
----src()
--------index.js(12KB)
--------error.js(170B)
----cjs()
--------index.js(15KB)
--------error.js(2KB)
----.gitignore(37B)
----playground.html(331B)
----demo()
--------index.html(4KB)
--------arrow.svg(1KB)
--------arrow-selected.svg(1KB)
----README.md(1KB)
----yarn.lock(130KB)
----.eslintignore(29B)
----bower.json(346B)
----.vscode()
--------launch.json(3KB)

网友评论