lunar-lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

downloads

Lunar client launcher library

This is a javascript library to launch lunar client, without having the launcher installed

How does it work?

It downloads all required files by mimicking the normal launcher, then launches

Example

async function main() {
  const lunar = await LunarLauncher.init(); // fetch the versions, and other metadata from the launcher
  
  lunar.setVersion('1.7'); // this will set the requested version to 1.7, is 1.8 by default
  
  await lunar.launch(); // this will download all files, and then launch java
}

main();

What doesnt work

The server lunar.gg currently does not work

To the people at lunar

I'm not entirely sure if this is against your TOS, and I will take it down if you ask me to.

Readme

Keywords

none

Package Sidebar

Install

npm i lunar-lib

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

37.3 kB

Total Files

43

Last publish

Collaborators

  • pringles