2.0.1 • Published 10 years ago

virt v2.0.1

Weekly downloads
4
License
MIT
Repository
-
Last release
10 years ago

virt

This package is a wrapper of libvirt for node js.

Overview

The wrappered API is almost the same as libvirt, about libvirt, please see:

Dependencies

  • libvirt
  • node.js v0.10.x or higher

References

Please see API doc

Example

var Connection = require('virt').Connection;

var conn = Connection.open('vbox:///session');

try {
    var capabilities = conn.getCapabilities();
    console.log(capabilities);

    var hostname = conn.getHostname();
    console.log(hostname);

    ver libVersion = conn.getLibVersion();
    console.log(libVersion);

    var nodeInfo = conn.getNodeInfo();
    console.log(JSON.stringify(nodeInfo));
} catch (e) {
    console.log(e.stack);
} finally {
    if (conn) {
        conn.close();
    }
}

TODO

  • Add non-*nix platform support

License

Copyright (c) 2013-2015, Johnson Lee (MIT License).

2.0.1

10 years ago

2.0.0

10 years ago

1.0.4

12 years ago

1.0.3

12 years ago

1.0.2

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago