xo-vmdk-to-vhd

2.5.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i xo-vmdk-to-vhd

Weekly Downloads

54

Version

2.5.7

License

AGPL-3.0-or-later

Unpacked Size

198 kB

Total Files

23

Last publish

Collaborators

  • olivierlambert
  • julien-f
  • pdonias
  • tgoettelmann
  • badraz
  • rajaa_b
  • mathieura
  • florent.beauchamp