New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@lilithmod/sdk

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lilithmod/sdk

SDK for developing Lilith mods

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

sdk

Lilith SDK contains types & a packager required for working with the Lilith modding API.

Install

To install you can simply install via NPM

npm install @lilithmod/sdk -g

Usage

Using this is extremely simple, first create a mod

const { versions, commandHandler } = require("lilith-sdk");

function onLoad() {
    console.log(`Using Lilith SDK version ${versions.sdk} with Lilith ${versions.lilith}`);

    commandHandler.registerCommand("hello_world", {
        execute: () => {
            console.log("Test command executed (wow)");
        }
    });
}

module.exports = {
    onLoad
}

then package it using lilith-sdk within your mod's directory

Building

If you want to modify something about how this packages you can do so, simply run

npm install
npm run build

to get your built SDK

Keywords

ts

FAQs

Package last updated on 11 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts