npm.io
1.1.0 • Published 11 years ago

noddity-fs-retrieval

Licence
VOL
Version
1.1.0
Deps
1
Vulns
0
Weekly
0

Noddity FS Retrieval

Build Status

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)
			})
		}
	})

license

VOL