A through stream that extracts code from Markdown content, optionally selecting only code blocks of a selected type.
Currently this only works with GFM-style fenced code blocks, I don't have a need for indentation based blocks (yet). This README file makes a nice example:
var fs =var assert =var concat =var markdownCodeBlocks =var readme = fsreadme
Which you can pipe into
node to verify that this module is working:
module.exports = (types: String|Array<String>) => Transform<String, String>