node-yamlhead:从文件中读取类似于Jekyll的YAML标头。 使用流_or_回调!

时间:2021-05-19 12:18:25
【文件属性】:
文件名称:node-yamlhead:从文件中读取类似于Jekyll的YAML标头。 使用流_or_回调!
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-19 12:18:25
JavaScript YAML头 从随机文件中读取YAML标头。 安装 npm install yamlhead 用法 假设您有一个与在Jekyll中找到的Markdown文件类似的Markdown文件。 title: Cool Blog Post About Cats tags: [foo, bar, cat, horse, js] category: Cats --- # Cool Blog Post About Cats I recenly came across a cool cat named Arthus. He has a moustache and yellow **paws**. Yaddayada lorem ipsum dolor _site_ prosit. 现在,假设您要提取该YAML标头并将其与其余内容分开。 var yamlhead = require ( 'yamlhe
【文件预览】:
node-yamlhead-master
----.gitignore(13B)
----package.json(471B)
----README.md(2KB)
----yamlhead.js(2KB)
----docs()
--------docco.css(7KB)
--------yamlhead.html(16KB)
----test()
--------test.md(107B)
--------yamlhead.test.js(2KB)
--------jekyllstyle.md(57B)
--------inconsistentheader.md(37B)
--------invalid.md(32B)

网友评论