Package detail

@studio/editor

javascript-studio11.3kMIT1.1.1

Launch $EDITOR in your program

text, edit, shell

readme

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

changelog

Changes

1.1.1

  • Fix wrongly applied commit

1.1.0

Fork editor to @studio/editor to get node-editor#13 into the project.

  • Call callback when child process errors, pass 127 on ENOENT (Frederik Ring)

Developer tools changes (Maximilian Antoni):

  • Use Studio Changes for releases
  • Use eslint and adjust source style
  • Adjust project name and URLs for fork
  • Add package-lock.json
  • Remove unused tab dependency and test script
  • Change README style to match Studio projects

Previous releases published as editor:

1.0.0

0.0.1

  • fix for node 0.10

0.0.6

  • support for arguments in editor (Mathias Buus)
  • fix the license

0.0.5

0.0.4

0.0.3

  • fix typeError (Dominic Tarr)
  • use notepad on windows
  • remove unnecessary stdin.pipe()
  • pkginit-generated package.json
  • use __dirname
  • working example ripped out of pkginit