zeon-front-matter

zeon-front-matter

zeon-front-matter

Extract front matter from strings.

Install

install with npm

npm install zeon-front-matter
front-matter

YAML front-matter

---
layout: base
modal: none
---
bar

HTML Comments front-matter

<!--[conf.yaml]
layout: base
modal: none
[conf.yaml]-->
<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>
Methods
var fm = require('zeon-front-matter');

fm(string, options)

fm.parse(string, options)

fm.split(string)

HomePage

https://github.com/zeonjs/zeon-front-matter#readme

Repository

https+https://github.com/zeonjs/zeon-front-matter


上一篇:Nuxt + Koa2 + Mongodb 手撸一个网上商城
下一篇:zeon-ms-05

相关推荐

  • 纯 CSS 实现的 Material 组件合集:Matter

    Matter M logo(https://img.javascriptcn.com/37ebed27c9c65f3992628a3daba107b2)(/go/?target=https%3A%2F...

    1 年前
  • 【一统江湖的大前端(8)】matter.js 经典物理

    pic0.jpg(/public/upload/c2aebd20d7152921df8c2bfebe216214) 示例代码托管在:http://www.github.com/dashnowo...

    4 个月前
  • zeon-ms-05

    MS05 Zaku zeonms05 MS05 Zaku HomePage https://github.com/zeonjs/zeonms05readme Repository ...

    1 年前
  • yaml-front-matter

    yaml front matter for JS. Parse yaml or JSON from the beginning of files. Yaml Front Matter Par...

    1 年前
  • xml-formatter

    Converts a XML string into a human readable format (pretty print) while respecting the xml:space att...

    10 天前
  • webpack yaml-frontmatter-loader

    YAML Frontmatter loader for webpack. Converts YAML in files to JSON. You should chain it with jsonlo...

    3 个月前
  • typescript-formatter

    Formatter of TypeScript code TypeScript Formatter (tsfmt) npm(https://img.shields.io/npm/v/typesc...

    2 年前
  • tslint-unix-formatter

    A formatter with error output in UNIX style for tslint. UNIX Style Formatter for tslint Output A ...

    16 天前
  • tslint-path-formatter

    TSLint formatter that displays absolute path with row/column on one line tslintpathformatter Bu...

    2 年前
  • tslint-junit-formatter

    JUnit XML formatter for TSlint. TSLint JUnit Formatter ====================== A custom TSLint form...

    1 天前

官方社区

扫码加入 JavaScript 社区