tinygo-wrapper
v0.0.0
Published
A wrapper for TinyGo that can be installed via npm and run with npx
Downloads
1
Readme
TinyGo NPM Wrapper
This is an NPM wrapper for TinyGo, allowing you to install and run TinyGo using npm and npx.
Installation
Install globally:
npm install -g tinygo-wrapperOr install locally in your project:
npm install tinygo-wrapperUsage
Run TinyGo commands using npx:
npx tinygo version
npx tinygo build -o output.wasm main.goThe wrapper will automatically download the appropriate TinyGo binary for your platform and cache it in ~/.tinygo-cache.
Supported Platforms
- Linux (amd64)
- macOS (amd64, arm64)
- Windows (amd64)
Version
The wrapper automatically downloads and uses the latest version of TinyGo available on GitHub.
