UNPKG

extract-pkg

Version:

Extract .app, .apk from iOS simulator or Android emulator

16 lines (11 loc) 281 B
'use strict' function check (argv) { const { _, id, ios = {}, android = {} } = argv const [platform] = _ const config = platform === 'ios' ? ios : android if (!id && !config.id) { throw new Error('Missing `--id` or `-i`') } return true } module.exports = check