|
|
2 年之前 | |
|---|---|---|
| .. | ||
| example | 2 年之前 | |
| LICENSE | 2 年之前 | |
| README.markdown | 2 年之前 | |
| index.js | 2 年之前 | |
| package.json | 2 年之前 | |
Launch $EDITOR in your program.
var editor = require('editor');
editor('beep.json', function (code, sig) {
console.log('finished editing with code ' + code);
});
$ node edit.js
finished editing with code 0
var editor = require('editor')
Launch the $EDITOR (or opts.editor) for file.
When the editor exits, cb(code, sig) fires.
With npm do:
npm install editor
MIT