zees-dev / duktape-stub

Drop-in interface replacement for https://github.com/olebedev/go-duktape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duktape stub

Duktape is a thin, embeddable javascript engine.

The original implementation of duktape requires CGO_ENABLED=1.

This stub exists as a drop-in replacement for the original implementation - so you can continue to build/use your projects without CGO_ENABLED=1.

How to use

go get github.com/zees-dev/duktape-stub@v1.0.0

Use the following replace directive in your projects go.mod:

// go.mod

require(
  ...
)

replace gopkg.in/olebedev/go-duktape.v3 => github.com/zees-dev/duktape-stub v1.0.0

Original source

https://gitlab.com/vocdoni/go-dvote/-/tree/v0.6.2/duktape-stub

Use-case: ethereum/go-ethereum#20590 (comment).

About

Drop-in interface replacement for https://github.com/olebedev/go-duktape


Languages

Language:Go 100.0%