1.0.0 • Published 4 years ago

extract-dmg v1.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

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.