You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rebecca Turner 507fc53e37 deps: upgrade npm to 3.3.10 9 years ago
..
example npm: Upgrade to 1.2.21 12 years ago
LICENSE npm: Upgrade to v1.4.21 11 years ago
README.markdown npm: Upgrade to 1.2.21 12 years ago
index.js npm: Upgrade to v1.4.21 11 years ago
package.json deps: upgrade npm to 3.3.10 9 years ago

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

editor

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