4 Launch $EDITOR in your program.
10 var editor = require('editor');
11 editor('beep.json', function (code, sig) {
12 console.log('finished editing with code ' + code);
22 ![editor](http://substack.net/images/screenshots/editor.png)
25 finished editing with code 0
32 var editor = require('editor')
35 editor(file, opts={}, cb)
36 -------------------------
38 Launch the `$EDITOR` (or `opts.editor`) for `file`.
40 When the editor exits, `cb(code, sig)` fires.
45 With [npm](http://npmjs.org) do: