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

1.0.0 • Public • Published

Extract DMG Travis CI Build Status

Extract a DMG file on MacOS.

NPM Badge

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.

Package Sidebar

Install

npm i extract-dmg

Weekly Downloads

953

Version

1.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

6

Last publish

Collaborators

  • richienb