extract-dmg
v1.0.0
Published
Extract a DMG file on MacOS.
Downloads
2,376
Maintainers
Readme
Extract DMG
Extract a DMG file on MacOS.
Install
npm install extract-dmg
Usage
const extractDmg = require("extract-dmg");
(async () => {
await extractDmg("a.dmg"); // Get contents
//=> ["a", "b"]
await extractDmg("a.dmg", "extractDir"); // Extract and get contents
//=> ["a", "b"]
})()
API
extractDmg(filename, destination?)
filename
Type: string
The DMG to extract.
destination
Type: string
The destination directory to place the extracted files. Leave blank to skip extraction.