evolvelabs / electron-plugins Goto Github PK
View Code? Open in Web Editor NEWPlugin loader for electron applications.
License: MIT License
Plugin loader for electron applications.
License: MIT License
Hi i using the latest version of this plugin.
I included plugins part in my package.json of my app
But when i launch my app i have this error:
Uncaught TypeError: fs.readFile is not a function
Can you help me?
Thanks in advance.
If the loading file (index.js) is not at the same level than the package.json, you get the next error:
{ [Error: ENOENT: no such file or directory, open '/home/knek/code/koteky/src/package.json']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/knek/code/koteky/src/package.json' }
Hi,
It would be very nice to be able to define one or many plugins locations instead of relaying on a single default one.
I'd like for instance to be able to load plugins to populate toolboxes, file handers etc... when needed only.
Thanks!
Hi,
I would like allow users to add guest plugins to my app.
Is it secure to Javascript app core code? - it should be private.
so i have my use case where i need to call some functions common to my modules during execution. I am finding that this seems not actually possible as in the callback the return values are a list of the 'dependencies'.
function loadPlugin(context, results, callback) {
var modules = []
var dependencies = []
try {
...
var Plugin = require(file)
var mod = new Plugin(context.appContext)
modules.push(mod)
dependencies.push(depName)
}
} catch (err) {
return callback(err)
}
callback(null, dependencies)
}
is there any why the modules collection should not be returned in the callback?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.