Registry / other / dop251-goja-nodejs

dop251-goja-nodejs

JSON →
library0.0.0-20260212111938-1f56ff5bcf14gogounverified

Provides Node.js compatibility modules for the goja JavaScript runtime.

go get github.com/dop251/goja_nodejs
INSTALL
IMPORT
SIG · DOP251-GOJA-NODEJS
D
dop251-goja-nodejs
othergov0.0.0-20260212111938-1f56ff5bcf14
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_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.

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