pbox
Parser for concatenated Jekyll posts
Install
npm install pbox
Usage
var fs = var pbox = var posts = fsvar parsed = pbox
Given the following input:
---title: First post--- Some text. ---title: Second post--- First section. --- Second section.
This will parse into an array with this structure:
parsed = title: 'First post' content: '\nSome text.\n' title: 'Second post' content: '\nFirst section.\n' '\nSecond section.\n'
License
Apache-2.0