Node.js - markdown-walker
Simple directory walker that specifically looks for markdown files.
I use Markdown files for blogging, documentation, and pretty much every type of writing that I do. I'm starting to develop more and more utilities and that incorporate markdown so I wanted a module that encapsulates the finding of markdown.
npm install --save markdown-walker
The code is very simple. But it's essentially a modification of https://github.com/daaku/nodejs-walker except that it emits
markdown events when it discovers files that have any of the following extensions:
var mdw = ;var walker = ;walker;walker;
- dir: The directory to walk or search.
- options: Optional argument that only has one field:
lastModifiedcan either be a
Dateobject or a
numberthat represents the number of milliseconds since the UNIX epoch, e.g:
var mdw =var walker =
- markdown: Emitted when a markdown file is found.
- notModified: Only emmitted when
lastModifiedis set and it doesn't meet the condition.
- modified: Only emmitted when
lastModifiedis set and it does meet the condition.
Copyright 2012-2013 JP Richardson email@example.com