blob: c1121cad2f9d26ed42b85b47a8b929bd92898371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
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
```

```
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
|