mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-29 10:19:11 +00:00
.. | ||
example | ||
index.js | ||
LICENSE | ||
package.json | ||
README.markdown |
editor
Launch $EDITOR in your program.
example
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
methods
var editor = require('editor')
editor(file, opts={}, cb)
Launch the $EDITOR
(or opts.editor
) for file
.
When the editor exits, cb(code, sig)
fires.
install
With npm do:
npm install editor
license
MIT