virtualmin-api

1.0.0 • Public • Published

Virtualmin API

Its a simples wrapper

How its works?

  /**
   * Create a new instance
   */
  var config = {
    host: 'foo.com', //required
    path: '/virtual-server/remote.cgi', //value default not required
    port: 10000, //value default not required
    user: 'senha', //required
    password: 'password' //required
  };
  var connection = new Virutalmin(config);

  /**
   * Execute one action
   */
  connection.command(program)({
      //pass params here
      domain,
      proxy
    })
    .then((data) => {
    })
    .catch((err) => {
    });

The commands and params is the same of "Virutalmin CLI, check the original doc here."

Readme

Keywords

none

Package Sidebar

Install

npm i virtualmin-api

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • luizstacio