1.0.6 • Published 2 years ago

mod-jar-parser v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago