Installation

Running TeaScript is pretty simple, they’re multiple ways you can do this

Web Interface

TeaScript has a pretty sweet web interface and is the best enviorment for running TeaScript. All extensions are packaged up and usage is pretty straight-forward.

Command Line

If you wish to run TeaScript from the command line, ensure you have SpiderMonkey 38 or higher installed. They’re multiple ways to get started

Auto-Install Script

Install teascript from the GitHub

Give teascript the correct permissions

$ chmod +x teascript

Run teascript, and it should install the correct files. Enter the code, and then the input, , seperated.

1
2
3
4
5
6
  $ ./teascript
  TeaScript not installed. Installing TeaScript...
  # ...
  Code: # <TeaScript Code Here>
  Input: # <Input Here> e.g.: Input 1,Input 2,Input 3,...
  # <Output Here>

The next time you run TeaScript, it’ll detect the TeaScript/ folder and won’t need to reinstall the dependencies.

Manual Installation

You can also manually install/run TeaScript if you’re having issues with the script

Install the following files

Edit teascript.js and replace window with this, and /*props.json*/ with JSON.parse(read("props.json"))

Note

Different enviorments might use a different function than read

node.js:fs.readFile
rhino:readFile
spidermonkey:read