Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parse lithtech file (dtx/ltb/dat) with wasm/napi for Node.js/Deno/Browser

License

Notifications You must be signed in to change notification settings

jerry4718/js-lithtech-parser

Repository files navigation

@ylcc/lithtech-parser

https://github.com/jerry4718/js-lithtech-parser/actions

Parse lithtech file (dtx/ltb/dat) with wasm/napi for Node.js/Deno/Browser.

Install this test package

pnpm add @ylcc/lithtech-parser

Usage

Build

After pnpm build command, you can see lithtech-parser.[darwin|win32|linux].node file in project root. This is the native addon built from lib.rs.

Test

With ava, run pnpm test to testing native addon. You can also switch to another testing framework if you want.

Develop requirements

  • Install the latest Rust
  • Install Node.js@16+ which fully supported Node-API
  • Run corepack enable

Test in local

  • pnpm
  • pnpm build
  • pnpm test

And you will see:

$ ava --verbose
 ✔ sync function from native code
 ✔ sleep function from native code (201ms)
 ─
 2 tests passed
✨ Done in 1.12s.

About

Parse lithtech file (dtx/ltb/dat) with wasm/napi for Node.js/Deno/Browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /