• Home
Name Date Size #Lines LOC

..--

example/12-May-2024-119

LICENSED12-May-20241.1 KiB2217

README.markdownD12-May-2024653 5537

index.jsD12-May-2024595 2116

package.jsonD12-May-20241.4 KiB6867

README.markdown

1editor
2======
3
4Launch $EDITOR in your program.
5
6example
7=======
8
9``` js
10var editor = require('editor');
11editor('beep.json', function (code, sig) {
12    console.log('finished editing with code ' + code);
13});
14```
15
16***
17
18```
19$ node edit.js
20```
21
22![editor](http://substack.net/images/screenshots/editor.png)
23
24```
25finished editing with code 0
26```
27
28methods
29=======
30
31``` js
32var editor = require('editor')
33```
34
35editor(file, opts={}, cb)
36-------------------------
37
38Launch the `$EDITOR` (or `opts.editor`) for `file`.
39
40When the editor exits, `cb(code, sig)` fires.
41
42install
43=======
44
45With [npm](http://npmjs.org) do:
46
47```
48npm install editor
49```
50
51license
52=======
53
54MIT
55