Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
example/ | 12-May-2024 | - | 11 | 9 | ||
LICENSE | D | 12-May-2024 | 1.1 KiB | 22 | 17 | |
README.markdown | D | 12-May-2024 | 653 | 55 | 37 | |
index.js | D | 12-May-2024 | 595 | 21 | 16 | |
package.json | D | 12-May-2024 | 1.4 KiB | 68 | 67 |
README.markdown
1editor 2====== 3 4Launch $EDITOR in your program. 5 6example 7======= 8 9``` js 10var editor = require('editor'); 11editor('beep.json', function (code, sig) { 12 console.log('finished editing with code ' + code); 13}); 14``` 15 16*** 17 18``` 19$ node edit.js 20``` 21 22![editor](http://substack.net/images/screenshots/editor.png) 23 24``` 25finished editing with code 0 26``` 27 28methods 29======= 30 31``` js 32var editor = require('editor') 33``` 34 35editor(file, opts={}, cb) 36------------------------- 37 38Launch the `$EDITOR` (or `opts.editor`) for `file`. 39 40When the editor exits, `cb(code, sig)` fires. 41 42install 43======= 44 45With [npm](http://npmjs.org) do: 46 47``` 48npm install editor 49``` 50 51license 52======= 53 54MIT 55