package
launch $EDITOR in your program
npm install editorGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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 0var editor = require('editor')Launch the $EDITOR (or opts.editor) for file.
When the editor exits, cb(code, sig) fires.
With npm do:
npm install editorMIT