Installation
Install Sia for TypeScript, Go, Python, or C++ and verify your setup.
Install
Install @timeleap/sia using your preferred package manager:
npm install @timeleap/sia
yarn add @timeleap/sia
pnpm add @timeleap/sia
bun add @timeleap/sia
Requirements:
- TypeScript 5.0+ (recommended) or JavaScript ES2020+
- ESM only (
"type": "module"inpackage.json): CommonJS is not supported - Node.js, Bun, Deno, or modern browsers
Import
import { Sia } from "@timeleap/sia";
There is no default export. Always use the named import
{ Sia }.Verify Installation
Create a quick test to verify everything is working:
import { Sia } from "@timeleap/sia";
const sia = new Sia();
sia.addUInt8(42);
sia.seek(0);
console.log(sia.readUInt8()); // 42
If you see 42 printed, you're ready to go.