Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/excute
Execute any code and get result on your machine.
https://github.com/egoist/excute
Last synced: 4 months ago
JSON representation
Execute any code and get result on your machine.
- Host: GitHub
- URL: https://github.com/egoist/excute
- Owner: egoist
- License: mit
- Created: 2016-04-23T16:51:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-25T14:26:48.000Z (about 3 years ago)
- Last Synced: 2024-10-10T12:04:28.360Z (4 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
For all supported languages, please visit: https://run.glot.io/languages## Help
```bash
$ excute -hExecute any code and get result on your machine.
Usage:
excute -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)