@studio/editor

1.1.1 • Public • Published

Studio Editor

📝 Launch $EDITOR in your program.

A fork of substack/node-editor.

Usage

const editor = require('@studio/editor');
editor('beep.json', function (code, sig) {
  console.log('finished editing with code ' + code);
});

API

const editor = require('@studio/editor')
  • editor(file, opts={}, cb): Launch the $EDITOR (or opts.editor) for file. When the editor exits, cb(code, sig) fires.

Install

With npm do:

npm install editor

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @studio/editor

Weekly Downloads

383

Version

1.1.1

License

MIT

Unpacked Size

4.79 kB

Total Files

7

Last publish

Collaborators

  • mantoni