Package Exports
- app-info-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (app-info-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
app-info-parser
app-info-parser is writed for extracting information from APK and IPA file, which allows you to read the AndroidManifest.xml file in xxx.apk file or Info.plist in xxx.ipa file.
Support
- Node
- Browser
Installation
npm install app-info-parser
# or yarn
yarn add app-info-parserGetting started
Use in Node
const AppInfoParser = require('app-info-parser')
const parser = new AppInfoParser('../packages/test.apk') // or xxx.ipa
parser.parse().then(result => {
console.log('app info ----> ', result)
console.log('file buffer ----> ', parser.file)
}).catch(err => {
console.log('err ----> ', err)
})Use in Browser
html
<input type="file" name="file" id="file" onchange="fileSelect()">js
const AppInfoParser = require('app-info-parser')
function fileSelect () {
const files = document.getElementById('file').files
const parser = new AppInfoParser(files[0])
parser.parse().then(result => {
console.log('app info ----> ', result)
console.log('file buffer ----> ', parser.file)
}).catch(err => {
console.log('err ----> ', err)
})
}Q & A
- Error in webpack:
* fs in ../app-info-parser/~/bplist-parser/bplistParser.js To install it, you can run: npm install --save fs
// Add this option to build/webpack.base.conf.js
node: {
fs: 'empty'
}