noddity-fs-retrieval
v1.1.0
Published
For remote retrieval of a simple blog index and content
Downloads
112
Readme
Noddity FS Retrieval
Alternative to noddity-retrieval, that uses the file system instead of a server.
example
var retrieve = new Retrieve('./content')
retrieve.getIndex(function(err, index) {
if (!err && index.length > 0) {
// Get the most recent post
retrieve.getPost(index.pop(), function(err, post) {
console.log("Found post named " + post.metadata.title)
console.log("The words inside it are:\n" + post.content)
})
}
})