1.1.1 ā€¢ Published 6 years ago

@studio/editor v1.1.1

Weekly downloads
64
License
MIT
Repository
github
Last release
6 years ago

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