1.1.0 • Published 9 years ago

front-matter-extractor v1.1.0

Weekly downloads
47
License
-
Repository
github
Last release
9 years ago

view on npm npm module downloads per month Dependency Status Analytics

front-matter-extractor

install:

$ npm install -g front-matter-extractor

this code:

var fme = require("front-matter-extractor");
var extracted = fme.extract(input);

where input is a string containing:

---
title: something
date: 2013-10-20
words:
    - this
    - that
---
blah blah blah

sets extracted to the following object:

{
    title: "something",
    date: Mon Oct 20 2013 00:00:00 GMT+0000 (GMT),
    words: [ 'this', 'that' ],
    _remainder: "blah blah blah"
}
1.1.0

9 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago