hij1nx/EventVat — pull request #15 by guybrush (2012-06-01 08:55:57+00:00)
Title: [keys] support string-argument (make it regexp)

with this PR one can do:
``` javascript
var rpc = require('rpc-stream')
var v = require('eventvat')()
var s = rpc(v)
var c = rpc()
c.pipe(s).pipe(c)
var r = c.wrap(['set','keys'])
v.onAny(function(){console.log(this.event,'→',[].slice.call(arguments))})
r.set('foo','bar')
r.keys('f.*')
// output:
// set foo → [ 'bar' ]
// set → [ 'foo', 'bar' ]
// keys → [ /f.*/, [ 'foo' ] ]
```