Skip to content

TSGECO/tsg-js

Repository files navigation

::: {align="center"}

tsg-js

JavaScript bindings for the tsg Rust library using WebAssembly

Build Status

:::

About

This project provides JavaScript bindings for the tsg Rust library, compiled to WebAssembly to enable usage in web applications and Node.js environments.

🚴 Usage

🛠️ Building the Project

wasm-pack build

🔬 Running Tests

wasm-pack test --headless --firefox

🎁 Publishing to NPM

wasm-pack publish

📦 Using in Your Project

After installation:

import * as tsg from 'tsg-core-js';

async function load_tsg() {
	await tsg.default();
	console.log('tsg loaded');
}
// Use the tsg library functions
// Example usage goes here

🔋 Features

  • Access the full functionality of the tsg Rust library from JavaScript
  • High-performance computations using WebAssembly
  • Compatible with both browser and Node.js environments

🔧 Development

Prerequisites

Setup

git clone https://github.com/yourusername/tsg-js.git
cd tsg-js
wasm-pack build

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published