mod-jar-parser
v1.0.6
Published
``` npm install mod-jar-parser --save ```
Downloads
11
Readme
Install
npm install mod-jar-parser --save
Usage
import { parseRemoteJar, parseLocalJar } from 'mod-jar-parser'
It's dead simple
try {
const docs = await Promise.all([
parseRemoteJar(modUrl),
parseRemoteJar(spigotPluginUrl),
parseRemoteJar(bungeecordUrl),
parseRemoteJar(fabricUrl),
])
console.log(docs)
// [
// {
// package: 'jei',
// version: '4.16.1.301',
// name: 'Just Enough Items',
// authors: [ 'mezz' ],
// description: 'Simple recipe and item helper.',
// mcversion: '1.12.2',
// deps: []
// },
// {
// package: 'Vault',
// name: 'Vault',
// version: '1.7.3-b131',
// authors: [ 'cereal', 'Sleaker', 'mung3r' ],
// description: 'Vault is a Permissions & Economy API to allow plugins to more easily hook into these systems without needing to hook each individual system themselves.',
// deps: []
// },
// {
// package: 'Reconnect',
// name: 'Reconnect',
// version: '1.2.0-SNAPSHOT',
// authors: [ '5zig, Krymonota, Terrobility, krusic22, Maythiwat' ],
// deps: []
// },
// {
// package: 'yuushya',
// name: 'Yuushya',
// authors: [ 'Cocofish or 几何', 'Xiao2 or XiLaiTL' ],
// mcversion: '1.16.x',
// deps: []
// }
// ]
} catch (err) {
console.error(err)
}
deps is a list of packages. mcversion maybe undefined because plugin.yml doesn't contain any hint of it.