Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

README ALL THE FEATURES

  • Loading branch information...
commit 05c11d20c7e88b8a142fb9b04aeeedde12107783 1 parent c281327
@isaacs authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 README.md
View
20 README.md
@@ -19,6 +19,26 @@ promzard(inputFile, optionalContextAdditions, function (er, data) {
})
```
+In the `inputFile` you can have something like this:
+
+```javascript
+var fs = require('fs')
+module.exports = {
+ "greeting": prompt("Who shall you greet?", "world", function (who) {
+ return "Hello, " + who
+ }),
+ "filename": __filename,
+ "directory": function (cb) {
+ fs.readdir(__dirname, cb)
+ }
+}
+```
+
+When run, promzard will display the prompts and resolve the async
+functions in order, and then either give you an error, or the resolved
+data, ready to be dropped into a JSON file or some other place.
+
+
### promzard(inputFile, ctx, callback)
The inputFile is just a node module. You can require() things, set
Please sign in to comment.
Something went wrong with that request. Please try again.