Extra Library for the LeviLamina JavaScript mod with Komomo
English | 简体中文
This library provides extra features for the LeviLamina JavaScript mod with Komomo, such as:
- Processing JSON configuration files conveniently
- Easily translating text using a language dictionary(i18n)
- ...
Install Komomo-Extra as a mod
-
Install Komomo-Extra as a mod by lip:
lip install github.com/TelluriumDev/Komomo-Extra
-
then import it in your mod:
import * as KomomoExtra from "./KomomoExtra/index.js";
also you can use
import { ... } from "./KomomoExtra/index.js";
to import specific functions.
don't forget to add KomomoExtra
to your dependencies
in your manifest.json
to ensure it works properly:
Install Komomo-Extra as a npm package
-
Join this repository as a npm by running the following command in the terminal in your project directory:
npm i komomo-extra
-
then import it in your mod in a similar way:
import * as KomomoExtra from "komomo-extra"
also you can use
import { ... } from "komomo-extra";
to import specific functions.
-
describe your issues or suggestions on github: issues
-
communicate with us by email:
- TelluriumDev(public email): [email protected]
- private email: [email protected]
-
join our QQ group: 825998853
you can build the library by running the following command in the terminal in your project directory:
npm i -g pnpm // if you don not have pnpm
git clone https://github.com/TelluriumDev/Komomo-Extra.git
cd Komomo-Extra
pnpm install
git clone https://github.com/TelluriumDev/KomomoHelperLib.git
npx gulp build
if you want to build it as a plugin, run npx gulp plugin
instead of npx gulp build
.
Then, the build output of this repository will be exported to the /dist/KomomoExtra
folder.
This repository is released under the CC0-1.0 license.
PR or suggestions are welcome!🥵