Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvarolorentedev/electron-plugin
an electron plugin extension package
https://github.com/alvarolorentedev/electron-plugin
electron nodejs plugin-architecture plugin-loader plugin-manager
Last synced: 3 months ago
JSON representation
an electron plugin extension package
- Host: GitHub
- URL: https://github.com/alvarolorentedev/electron-plugin
- Owner: alvarolorentedev
- License: mit
- Archived: true
- Created: 2018-09-18T07:04:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T01:16:51.000Z (over 3 years ago)
- Last Synced: 2024-05-19T11:09:23.835Z (9 months ago)
- Topics: electron, nodejs, plugin-architecture, plugin-loader, plugin-manager
- Language: JavaScript
- Size: 4.25 MB
- Stars: 36
- Watchers: 5
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ![logomakr_2nqeyp](https://user-images.githubusercontent.com/3071208/46248168-4cb42880-c416-11e8-9c39-2580669a656a.png)
[![Build Status](https://travis-ci.org/kanekotic/electron-plugin.svg?branch=master)](https://travis-ci.org/kanekotic/electron-plugin)
[![codecov](https://codecov.io/gh/kanekotic/electron-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/kanekotic/electron-plugin)
[![npm](https://img.shields.io/npm/dy/electron-plugin.svg)](https://github.com/kanekotic/electron-plugin)
[![GitHub license](https://img.shields.io/github/license/kanekotic/electron-plugin.svg)](https://github.com/kanekotic/electron-plugin/blob/master/LICENSE)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/kanekotic/electron-plugin/graphs/commit-activity)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:
```js
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](logomakr.com/2NQeYP) at [LogoMakr.com](LogoMakr.com)