1.0.0 • Published 4 years ago
extract-dmg v1.0.0
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.
1.0.0
4 years ago