Registry / utility / dop251-goja

dop251-goja

JSON →
library0.0.0-20231027120936-b396bb4c349dgogounverified

Package goja is a JavaScript runtime written in Go, implementing ECMAScript 5.1+.

go get github.com/dop251/goja
INSTALL
IMPORT
SIG · DOP251-GOJA
D
dop251-goja
utilitygov0.0.0-20231027120936-b396bb4c349d
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

goja
github.com/dop251/goja

Evaluates a simple JavaScript expression and prints the result.

package main import ( "fmt" "github.com/dop251/goja" ) func main() { vm := goja.New() val, _ := vm.RunString("1 + 2") fmt.Println(val.Export()) // 3 }
Debug
Known issues
gotchagoja does not fully support all ES6+ features; check compatibility for your use case.
fix
Test your JavaScript code with goja before relying on it.
affects: all
Upgrade
Version history
0.0.0-20231027120936-b396bb4c349dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
dop251-goja — go get dop251-goja · libregistry