mdvars

1.0.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    12
  • 1.0.0
    1
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i mdvars

Weekly Downloads

14

Version

1.0.1

License

none

Last publish

Collaborators

  • nfroidure