monkey-typescript
An interpreted language for the browser and NodeJS, based on Monkey
File Explorer
- main.workflow
- ast-test.ts
- ast.ts
- monkey-typescript
- array_concat.ts
- array_filter.ts
- array_find.ts
- array_first.ts
- array_flat.ts
- array_includes.ts
- array_join.ts
- array_last.ts
- array_len.ts
- array_map.ts
- array_max.ts
- array_min.ts
- array_pop.ts
- array_push.ts
- array_reduce.ts
- array_rest.ts
- array_reverse.ts
- array_shift.ts
- array_slice.ts
- array_sort.ts
- array_unshift.ts
- date_iso.ts
- date_locale.ts
- date_locale_now.ts
- date_now.ts
- date_utc.ts
- eval.ts
- file_append.ts
- file_copy.ts
- file_delete.ts
- file_exists.ts
- file_mkdir.ts
- file_move.ts
- file_read.ts
- file_read_json.ts
- file_realpath.ts
- file_rmdir.ts
- file_truncate.ts
- file_write.ts
- hash_contains_key.ts
- hash_keys.ts
- hash_remove.ts
- hash_values.ts
- json_parse.ts
- json_stringify.ts
- len.ts
- math_abs.ts
- math_ceil.ts
- math_cos.ts
- math_floor.ts
- math_log.ts
- math_pow.ts
- math_random.ts
- math_round.ts
- math_sin.ts
- math_sqrt.ts
- math_tan.ts
- math_trunc.ts
- number.ts
- print.ts
- regex_match.ts
- regex_replace.ts
- regex_search.ts
- regex_split.ts
- regex_test.ts
- sprint.ts
- sprintf.ts
- string.ts
- string_concat.ts
- string_contains.ts
- string_ends_with.ts
- string_format.ts
- string_index_of.ts
- string_len.ts
- string_lowercase.ts
- string_repeat.ts
- string_replace.ts
- string_reverse.ts
- string_slice.ts
- string_split.ts
- string_starts_with.ts
- string_substr.ts
- string_substring.ts
- string_trim.ts
- string_uppercase.ts
- builtins.ts
- configuration.ts
- evaluator-test.ts
- evaluator.ts
- basic.monkey
- empty.monkey
- example.monkey
- print.monkey
- lexer-test.ts
- lexer.ts
- environment.ts
- file-loader.ts
- logger.ts
- object-test.ts
- object.ts
- parser-test.ts
- parser.ts
- repl.ts
- position.ts
- token.ts
- .dockerignore
- .gitignore
- .npmignore
- .nvmrc
- .prettier.rc
- Dockerfile
- index.ts
- package-lock.json
- package.json
- README.md
- test.ts
- tsconfig.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
git commit
View Details ▼
git commit
Commit files to the repository.
git commit
Open an editor to write a message and commit staged files to the repository:
git commit {{[-m|--message]}} "{{message}}"
Commit staged files to the repository with the specified message:
git commit {{[-F|--file]}} {{path/to/commit_message_file}}
Commit staged files with a message read from a file:
git push
View Details ▼
git push
Push commits to a remote repository.
git push
Send local changes in the current branch to its default remote counterpart:
git push {{remote_name}} {{local_branch}}
Send changes from a specific local branch to its remote counterpart:
git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}
Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:
git tag
View Details ▼
git tag
Create, list, delete, or verify tags.
A tag is a static reference to a commit.
git tag
List all tags:
git tag {{tag_name}}
Create a tag with the given name pointing to the current commit:
git tag {{tag_name}} {{commit}}
Create a tag with the given name pointing to a given commit:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
npm publish
View Details ▼
npm publish
Publish a package to the npm registry.
npm publish
Publish the current package to the default npm registry:
npm publish {{path/to/package_directory}}
Publish a package from a specific directory:
npm publish --access public
Publish a scoped package with public access:
npm run
View Details ▼
npm run
Run a script.
npm run
List available scripts:
npm run {{script_name}}
Run a script:
npm run {{script_name}} -- {{argument}} {{--option}}
Pass arguments to a script:
npm start
View Details ▼
npm start
This command is an alias of `npm run start`.
tldr npm run
View documentation for the original command:
npx
View Details ▼
npx
This command is an alias of `npm exec`.
tldr npm exec
View documentation for the original command:
nvm
View Details ▼
nvm
Install, uninstall, or switch between Node.js versions under the fish shell.
Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc.
nvm install {{node_version}}
Install a specific version of Node.js:
nvm install {{node_version}}
Install a specific version of Node.js:
nvm use {{node_version}}
Use a specific version of Node.js in the current shell:
ts-node
View Details ▼
ts-node
Run TypeScript code directly, without any compiling.
ts-node {{path/to/file.ts}}
Execute a TypeScript file without compiling (Node + `tsc`):
ts-node --skipProject {{path/to/file.ts}}
Execute a TypeScript file without loading `tsconfig.json`:
ts-node {{[-e|--eval]}} '{{console.log("Hello World")}}'
Evaluate TypeScript code passed as a literal:
