Latest commit d22a6e9 Feb 28, 2014
Permalink
..
Failed to load latest commit information.
README.md Update docs. Feb 28, 2014
exports.md Update docs. Feb 28, 2014
file.md Update test and docs Oct 22, 2013
template.md format example Jul 5, 2013
utils.md Update docs. Dec 26, 2013

README.md

API

  • exports - The exports API
  • exports.file - There are many provided methods for reading and writing files, traversing the filesystem and finding files by matching globbing patterns. Many of these methods are wrappers around built-in Node.js file functionality, but with additional error handling, logging and character encoding normalization.
  • exports.utils - Miscellaneous utilities
  • exports.template - Compiles templates into strings
  • exports._ - Underscore provides 80-odd functions that support both the usual functional suspects: map, select, invoke — as well as more specialized helpers: function binding, javascript templating, deep equality testing, and so on. It delegates to built-in functions, if present, so modern browsers will use the native implementations of forEach, map, reduce, filter, every, some and indexOf.
  • exports.async - Async provides around 20 functions that include the usual 'functional' suspects (map, reduce, filter, each…) as well as some common patterns for asynchronous control flow (parallel, series, waterfall…). All these functions assume you follow the node.js convention of providing a single callback as the last argument of your async function.
  • exports.request - Simplified HTTP request method
  • exports.prompt - Using prompt is relatively straight forward. There are two core methods you should be aware of: prompt.get() and prompt.addProperties(). There methods take strings representing property names in addition to objects for complex property validation (and more).