wexond-package-manager package manager for Wexond, which is written in TypeScript and Node.js. It uses easy-vm to run plugins' scripts.
$ npm install -g wexond-package-manager$ wpm <command> <params>List of commands:
-
install- Installs plugin from a GitHub repository.namestring - name of the GitHub repo for examplewexond/wexond-example-plugin
-
update- Checks if there is newer version of a plugin and if there is, it installs newer version of the pluginnamestring - name of the GitHub repo
const wpm = require("wexond-package-manager");
wpm
.install("wexond-example-plugin", false)
.then(() => {
console.log("Installation completed successfully");
})
.catch(e => {
console.error(e);
});wpm.install - Installs plugin from a GitHub repository.
namestring - name of the GitHub repo- Returns
Promise<void>
wpm.update - Checks if there is newer version of a plugin and if there is, it installs newer version of the plugin
namestring - name of the GitHub repo- Returns
Promise<void>
wpm.run - Runs a plugin in Node's VM.
namestring - name of the GitHub repo- Returns
Promise<any>
wpm.list - Lists all installed plugins.
- Returns
Promise<Package[]>