1.1.0 • Published 6 months ago

@kapeta/electron-ide-opener v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago