mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
DISABLE_THIRD_PARTY_CHECK=update Puppeteer Also-By: tvanderlippe@chromium.org Change-Id: I4ddb6a2b426bcde95f9b764790e88b560441225c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2187209 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
20 lines
393 B
JavaScript
Executable File
20 lines
393 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/* eslint-disable no-process-exit */
|
|
|
|
var extract = require('./')
|
|
|
|
var args = process.argv.slice(2)
|
|
var source = args[0]
|
|
var dest = args[1] || process.cwd()
|
|
if (!source) {
|
|
console.error('Usage: extract-zip foo.zip <targetDirectory>')
|
|
process.exit(1)
|
|
}
|
|
|
|
extract(source, { dir: dest })
|
|
.catch(function (err) {
|
|
console.error('error!', err)
|
|
process.exit(1)
|
|
})
|