Skip to content

Node native module of StormLib C++ library built for Electron

License

Notifications You must be signed in to change notification settings

Haaxor1689/stormlib-node

Repository files navigation

StormLib Node

Node native module of StormLib C++ library.

Usage

Install the package as a dependency:

npm i stormlib-node

Import in one of your main thread scripts:

import { SFileOpenArchive } from 'stormlib-node';

You can also import and use enum values:

import { STREAM_FLAG } from 'stormlib-node/dist/enums';

SFileOpenArchive('path/to/archive.mpq', STREAM_FLAG.READ_ONLY);

Depending on your use case, you may need to explicitly include these files in your build/package script:

  • ./node_modules/stormlib-node/dist/stormlib.node
  • ./node_modules/stormlib-node/dist/StormLib.dll (Windows only)

About

Node native module of StormLib C++ library built for Electron

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published