chdman
TypeScript icon, indicating that this package has built-in type declarations

0.265.0 • Public • Published

💿️ chdman

Pre-compiled binaries and Node.js wrapper for MAME's chdman tool.

npm: version npm: downloads GitHub: stars license

Supported platforms

OS Architectures Additional Instructions
Windows • x64
• x86
macOS • arm64 (Apple Silicon)
• x64 (Intel)
SDL2 is required to be installed separately:
brew install sdl2
Linux • x64
• x86
• arm (armhf)
• arm64 (aarch64)

Any chdman that exists on your $PATH will be preferred over the bundled binaries. This lets you control the build that is right for your machine.

Installation

npm install --save chdman

Usage

import chdman from 'chdman';

/**
 * Create and extract hard disks
 */
await chdman.createHd({
  inputFilename: 'original-image',
  outputFilename: 'image.chd',
});
console.log(await chdman.info('image.chd'));
// { inputFile: 'image.chd', fileVersion: 5, ... }
await chdman.extractHd({
  inputFilename: 'image.chd',
  outputFilename: 'extracted-image',
});


/**
 * Create and extract CD-ROMs
 */
await chdman.createCd({
  inputFilename: 'Original.cue',
  outputFilename: 'CD.chd',
});
console.log(await chdman.info('CD.chd'));
// { inputFile: 'CD.chd', fileVersion: 5, ... }
await chdman.extractCd({
  inputFilename: 'CD.chd',
  outputFilename: 'Extracted.cue',
  outputBinFilename: 'Extracted.bin',
});


/**
 * Create and extract DVD-ROMs
 */
await chdman.createDvd({
  inputFilename: 'Original.iso',
  outputFilename: 'DVD.chd',
});
console.log(await chdman.info('DVD.chd'));
// { inputFile: 'DVD.chd', fileVersion: 5, ... }
await chdman.extractDvd({
  inputFilename: 'DVD.chd',
  outputFilename: 'Extracted.iso',
});

Readme

Keywords

Package Sidebar

Install

npm i chdman

Weekly Downloads

60

Version

0.265.0

License

GPL-3.0-or-later

Unpacked Size

14.1 MB

Total Files

38

Last publish

Collaborators

  • emmercm