verdox-package-manager
A package manager for Verdox
Last updated 2 years ago by ahmedmostafa15 .
MIT · Original npm · Tarball · package.json
$ cnpm install verdox-package-manager 
SYNC missed versions from official npm registry.

verdox-package-manager

verdox-package-manager package manager for Verdox, which is written in TypeScript and Node.js. It uses tiny-vm to run plugins' scripts.

Installation

$ npm install -g verdox-package-manager

Usage

$ vpm <command> <params>

List of commands:

  • install - Installs plugin from a GitHub repository.

    • name string - name of the GitHub repo for example verdox/verdox-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 vpm = require("verdox-package-manager");

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

Methods

vpm.install - Installs plugin from a GitHub repository.

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

vpm.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>

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

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

vpm.list - Lists all installed plugins.

  • Returns Promise<Package[]>

Current Tags

  • 1.4.5                                ...           latest (2 years ago)

2 Versions

  • 1.4.5                                ...           2 years ago
  • 1.3.5                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |