@kapeta/electron-ide-opener
v1.1.0
Published
Electron IDE opener - extracted from Github Desktop
Downloads
35
Keywords
Readme
electron-ide-opener
Small library for detecting and opening a file or folder in local IDEs.
Meant to be used in Electron apps, but can be used in any Node.js app.
This is a copy / extract from Github Desktop
Install
npm install --save @kapeta/electron-ide-opener
Usage
Using ESM:
import { getAvailableEditors, findEditorOrDefault } from '@kapeta/electron-ide-opener';
const editors = await getAvailableEditors();
const vsCode = findEditorOrDefault('Visual Studio Code');
const defaultEditor = findEditorOrDefault(null);
Using CJS:
const { getAvailableEditors, findEditorOrDefault } = require('@kapeta/electron-ide-opener');
const editors = await getAvailableEditors();
const vsCode = findEditorOrDefault('Visual Studio Code');
const defaultEditor = findEditorOrDefault(null);