]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/editor/README.markdown
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / editor / README.markdown
1 editor
2 ======
3
4 Launch $EDITOR in your program.
5
6 example
7 =======
8
9 ``` js
10 var editor = require('editor');
11 editor('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 ```
25 finished editing with code 0
26 ```
27
28 methods
29 =======
30
31 ``` js
32 var editor = require('editor')
33 ```
34
35 editor(file, opts={}, cb)
36 -------------------------
37
38 Launch the `$EDITOR` (or `opts.editor`) for `file`.
39
40 When the editor exits, `cb(code, sig)` fires.
41
42 install
43 =======
44
45 With [npm](http://npmjs.org) do:
46
47 ```
48 npm install editor
49 ```
50
51 license
52 =======
53
54 MIT