node package manager

mdvars

MDVars

MDVars extracts metadata in Markdown files.

NPM version Build status Dependency Status devDependency Status Coverage Status

Usage

NodeJS module:

var meta = {};
var Fs.createReadStream('markdown+metadatas.md')
  .pipe(new MDVars(meta, 'data'))
  .pipe(Fs.createWriteStream('markdownonly.md'));
 
console.log(meta.data);
// {title: 'A title', description: 'A description'} 

Format

# A file
<!--VarStream
title=A title
description=A description
-->
Blahblahblah !

Contributing

Feel free to pull your code if you agree with publishing it under the MIT license.