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_nodejs
✓ github.com/dop251/goja_nodejs
Initializes a goja VM with Node.js module support.
package main
import (
"fmt"
"github.com/dop251/goja"
"github.com/dop251/goja_nodejs/require"
)
func main() {
vm := goja.New()
registry := require.NewRegistry()
registry.Enable(vm)
_, err := vm.RunString("console.log('hello')")
if err != nil {
fmt.Println(err)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20260212111938-1f56ff5bcf14latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.