Skip to content

Node module to convert Markdown files with YML front-matter into a JSONpready object

Notifications You must be signed in to change notification settings

donaldwasserman/md-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to JSON Processor

Use md-json to serve markdown files with YAML front-matter to return a promise of json-ready javascript objects.

Usage:

npm install md-json & var mdJson = require('md-json');

//in express
app.get('/posts', function(req, res) {
  var posts = mdJson('posts');
  posts.then(function(data) {
    res.json(data);
  });
});

This has only been used in node v. 4.1.2 and is fully un-tested.

About

Node module to convert Markdown files with YML front-matter into a JSONpready object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published