1.4.5 • Published 6 years ago

wexond-package-manager v1.4.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

wexond-package-manager

wexond-package-manager package manager for Wexond, which is written in TypeScript and Node.js. It uses easy-vm to run plugins' scripts.

Installation

$ npm install -g wexond-package-manager

Usage

$ wpm <command> <params>

List of commands:

  • install - Installs plugin from a GitHub repository.

    • name string - name of the GitHub repo for example wexond/wexond-example-plugin
  • update - Checks if there is newer version of a plugin and if there is, it installs newer version of the plugin

    • name string - name of the GitHub repo

API

Quick example

const wpm = require("wexond-package-manager");

wpm
  .install("wexond-example-plugin", false)
  .then(() => {
    console.log("Installation completed successfully");
  })
  .catch(e => {
    console.error(e);
  });

Methods

wpm.install - Installs plugin from a GitHub repository.

  • name string - 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

  • name string - name of the GitHub repo
  • Returns Promise<void>

wpm.run - Runs a plugin in Node's VM.

  • name string - name of the GitHub repo
  • Returns Promise<any>

wpm.list - Lists all installed plugins.

  • Returns Promise<Package[]>
1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago