Skip to content

kapetacom/electron-ide-opener

Repository files navigation

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);

About

Small library for detecting and opening a file in a relevant IDE

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •