AlkantarClanX12

Your IP : 18.223.213.76


Current Path : /proc/self/root/opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/editor/
Upload File :
Current File : //proc/self/root/opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/editor/README.markdown

editor
======

Launch $EDITOR in your program.

example
=======

``` js
var editor = require('editor');
editor('beep.json', function (code, sig) {
    console.log('finished editing with code ' + code);
});
```

***

```
$ node edit.js
```

![editor](http://substack.net/images/screenshots/editor.png)

```
finished editing with code 0
```

methods
=======

``` js
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](http://npmjs.org) do:

```
npm install editor
```

license
=======

MIT