1
0
mirror of https://github.com/robertkrimen/otto synced 2025-09-28 18:45:22 +08:00

Add note about underscore to the synopsis

This commit is contained in:
Robert Krimen 2012-10-10 18:23:54 -07:00
parent 2f89d77d37
commit ca3f3ba323
2 changed files with 22 additions and 0 deletions

View File

@ -72,6 +72,17 @@ Run JavaScript by entering some source on stdin or by giving otto a filename:
$ otto example.js
Optionally include the JavaScript utility-belt library, underscore, with this import:
import (
"github.com/robertkrimen/otto"
"github.com/robertkrimen/otto/underscore"
)
// Now every otto runtime will come loaded with underscore
For more information: http://github.com/robertkrimen/otto/tree/master/underscore
Caveat Emptor
* For now, otto is a hybrid ECMA3/ECMA5 interpreter. Parts of the specification are still works in progress.

11
otto.go
View File

@ -69,6 +69,17 @@ Run JavaScript by entering some source on stdin or by giving otto a filename:
$ otto example.js
Optionally include the JavaScript utility-belt library, underscore, with this import:
import (
"github.com/robertkrimen/otto"
"github.com/robertkrimen/otto/underscore"
)
// Now every otto runtime will come loaded with underscore
For more information: http://github.com/robertkrimen/otto/tree/master/underscore
Caveat Emptor
* For now, otto is a hybrid ECMA3/ECMA5 interpreter. Parts of the specification are still works in progress.