1.1.0 • Published 2 years ago

@kapeta/electron-ide-opener v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago