xen-orchestra/packages/xo-vmdk-to-vhd
2023-12-27 16:07:51 +01:00
..
docs chore(xo-vmdk-to-vhd): move notes.md to docs/ 2023-05-12 09:10:00 +02:00
src fix(xo-vmdk-to-vhd): improve compatibilty of ova with disk bigger than 8.2GB (#7183) 2023-11-15 16:23:33 +01:00
.babelrc.js chore: enforce strict mode for CJS files 2022-02-22 12:34:41 +01:00
.eslintrc.js chore(eslint): only use @babel/eslint-parser for pkgs using Babel 2021-04-23 14:47:34 +02:00
.npmignore feat: unified .npmignore for all packages 2021-04-07 13:58:14 +02:00
.USAGE.md chore: hide USAGE.md 2022-02-18 17:11:52 +01:00
LICENSE Initial commit 2016-08-02 16:37:00 +02:00
package.json feat: technical release (#7266) 2023-12-27 16:07:51 +01:00
README.md docs: uniformize code blocks 2023-02-06 11:25:12 +01:00

xo-vmdk-to-vhd

Package Version License PackagePhobia Node compatibility

JS lib reading and writing .vmdk and .ova files

Install

Installation of the npm package:

npm install --save xo-vmdk-to-vhd

Usage

To convert a VMDK stream to a Fixed VHD stream without buffering the entire input or output:

import { vmdkToVhd } from 'xo-vmdk-to-vhd'
import { createReadStream, createWriteStream } from 'fs'
;(async () => {
  const stream = await vmdkToVhd(fs.createReadStream(vmdkFileName))

  stream.pipe(fs.createWriteStream(vhdFileName))
})()

or:

var vmdkToVhd = require('xo-vmdk-to-vhd').vmdkToVhd
var createReadStream = require('fs').createReadStream
var createWriteStream = require('fs').createWriteStream

vmdkToVhd(fs.createReadStream(vmdkFileName)).then(function (stream) {
  stream.pipe(fs.createWriteStream(vhdFileName))
})

Contributions

Contributions are very welcomed, either on the documentation or on the code.

You may:

  • report any issue you've encountered;
  • fork and create a pull request.

License

AGPL-3.0-or-later © Vates SAS