Extract HJSON front matter from a string.
HJSON is a human-friendly superset of JSON that has some sweet syntactic sugars and multiline strings, which is great! Don't worry, it's not going to overthrow JSON and, yes, we shouldn't encourage developers to slack off in writing proper code with proper commas. However, there are some use cases where HJSON just makes sense. For instance, I think it's a nicer (easier) markup for front matter than YAML when using templating libraries.
npm install hjson-matter
var hm = ;var fs = ;var file = fs;var content;// pass in file contents as a Stringcontent = ;// pass in file contents as a Buffercontent = ;// specify a delimitercontent = ;// specify two different delimiterscontent = ;