requireclass
v1.0.9
Published
Automatically load an object named '.Class.js' and determine whether to use remote when processing objects in electron
Downloads
6
Readme
requireclass
Automatically load an object named '.Class.js' and determine whether to use remote when processing objects in electron
Install
npm install requireclass.
Example
Create an object named .Class.js.
ex. ClassName1.Class.js,ClassName2.Class.js
Custom object: const requireClass = require('requireclass'); const {ClassName1,ClassName2 } = requireClass('ClassName1','ClassName2');
Electron object: Use requireClass to load an electron object in the main process and renderer
const requireClass = require('requireclass'); const {app} = requireClass('app');