PHP 8.1.33
Preview: README.markdown Size: 653 B
//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

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
example DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
595 B lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.11 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.38 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
653 B lrw-r--r-- 2021-03-10 14:36:38
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).