flatiron/prompt — pull request #55 by yawnt (2012-09-20 18:46:13+00:00)
Title: Before

The issue [on jitsu](https://github.com/nodejitsu/jitsu/pull/318) made me think.. i had to do ugly stuff in order to add something to a user generated input ... prompt has validation but sometimes (like in the issue) it makes sense imho to support two versions

so here's my idea

```javascript
prompt.get({
properties: {
name: {
before: function(value) {
if(value[0] !== 'v') { return 'v' + value; }
}
}
}
}, function (e, res) { ... });
```

feel free to reject it

// __yawn__