Extract a DMG file on MacOS.
npm install extract-dmgExtract a DMG file on MacOS.

``sh`
npm install extract-dmg
`js
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"]
})()
`
#### filename
Type: string
The DMG to extract.
#### destination
Type: string`
The destination directory to place the extracted files. Leave blank to skip extraction.