Package Exports
- editor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (editor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 0methods
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 editorlicense
MIT