Registry / other / robertkrimen-otto

robertkrimen-otto

JSON →
library0.5.1gogounverified

A JavaScript parser and interpreter written natively in Go.

go get github.com/robertkrimen/otto
INSTALL
IMPORT
SIG · ROBERTKRIMEN-OTTO
R
robertkrimen-otto
othergov0.5.1
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.

otto
github.com/robertkrimen/otto

Create a JavaScript VM and evaluate an expression.

package main import ( "fmt" "github.com/robertkrimen/otto" ) func main() { vm := otto.New() value, _ := vm.Run("1 + 2") fmt.Println(value) }
Debug
Known issues
gotchaRegular expressions with backtracking (e.g., lookaheads) are not supported due to Go's RE2 engine.
fix
Avoid using complex regex patterns that require backtracking.
affects: all
Upgrade
Version history
0.5.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
8
Resources
robertkrimen-otto — go get robertkrimen-otto · libregistry