editor

launch $EDITOR in your program

MIT 9 个版本
安装
npm install editor
yarn add editor
pnpm add editor
bun add editor
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

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

版本列表
1.0.0 2015-04-20
0.1.0 2014-01-30
0.0.6 2013-12-23
0.0.5 2013-09-14
0.0.4 2012-11-25
0.0.3 2012-07-21
0.0.2 2012-06-13
0.0.1 2012-06-13
0.0.0 2012-06-13