Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

alvarolorentedev/electron-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logomakr_2nqeyp

Build Status codecov npm GitHub license Maintenance

Create extensible electron applications through a plugin architecture that uses NPM (or similar registry) or GitHub as repository for the extensions.

Installation

add it to your electron project using npm install electron-plugin --save or yarn add electron-plugin

Usage

require electron-plugin exports a function that requires a javascript object and an electron window, as seen on the next example:

const pluginManager = require(`electron-plugin`)
let config = { 
        installPath: `${__dirname}/test_folder`,
        plugins : {
            "electron-plugin-example": "0.0.2"
        }
     },
    extensionPoint = {
        app: 'anything you want to use as exstention point'
    }

pluginManager.load(config, extensionPoint)
Created my free logo at LogoMakr.com