crcn/node-scaffoldit — pull request #3 by ttillberg (2012-11-20 18:27:50+00:00)
Title: Add input validation

This commit allows to optionally add a validation function for each input-value. You will simply get prompted to enter some text over-again if the test fails...

```
input: {
folderName: {
msg: "Folder name:",
validate: function(value){
return value != "" || console.log("Folder name can't be left empty!".red);
}
}
}
```