excute
Version:
Execute any code and get result on your machine.
59 lines (39 loc) • 1.45 kB
Markdown
excute [](https://npmjs.com/package/excute) [](https://npmjs.com/package/excute) [](https://circleci.com/gh/egoist/excute)
Execute any code and get result on your machine.

# Install
It's **excute** not **execute**!
```bash
npm install -g excute
```
# Usage
```bash
see https://glot.io/account/token
excute -t API_TOKEN
run js code
excute try.js
run swift code
excute try.swift -l swift
run rust code
excute try.rs -l rust
execute a string
excute -s "echo $PATH" -l bash
```
For API token, please visit: https://glot.io/account/token<br>
For all supported languages, please visit: https://run.glot.io/languages
# Help
```bash
excute -h
Execute any code and get result on your machine.
Usage:
excute <file> -l [language]
Options:
-s/--string: Execute a string instead of a file
-t/--token: Set access token, see https://glot.io/account/token
-l/--language: Run in specific language, javascript by default
-p/--pretty: Pretty print result in a box
-v/--version: Print version
-h/--help: Print help (You are here!)
```
# License
MIT © [EGOIST](https://github.com/egoist)