1.2.1 • Published 5 years ago

@jabuco/epm v1.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

electron-package-manager

Dynamically install and require modules in electron

Usage

import epm from 'electron-package-manager';

const CWD = '/tmp/test-plugins';
const PACKAGE = 'levelup';

epm
  .pack(PACKAGE, CWD)
  .then(packagename => epm.extract(PACKAGE, CWD, path.join(CWD, packagename)))
  .then(modulepath => {
    console.log('requiring', modulepath);
    const mylib = require(modulepath);
    console.log('required', mylib);
  });
1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago