monkey-typescript
An interpreted language for the browser and NodeJS, based on Monkey
파일 탐색기
- 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
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
docker run
설명 보기 ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
git commit
설명 보기 ▼
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
설명 보기 ▼
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
설명 보기 ▼
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
설명 보기 ▼
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
설명 보기 ▼
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
설명 보기 ▼
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
설명 보기 ▼
npm start
This command is an alias of `npm run start`.
tldr npm run
View documentation for the original command:
npx
설명 보기 ▼
npx
이 명령은 `npm exec`의 별칭입니다.
tldr npm exec
자세한 내용은 원본 명령을 참고하세요:
nvm
설명 보기 ▼
nvm
Node.js 버전을 설치, 제거 또는 전환.
"12.8" 또는 "v16.13.1" 같은 버전 번호와 "stable", "system" 같은 레이블을 지원.
관련 항목: `asdf`.
더 많은 정보: <https://github.com/nvm-sh/nvm#usage>.
nvm install {{node_version}}
특정 버전의 Node.js 설치:
nvm install {{node_version}}
Node.js의 특정 버전 설치:
nvm use {{node_version}}
현재 셸에서 특정 버전의 Node.js 사용:
ts-node
설명 보기 ▼
ts-node
TypeScript 코드를 컴파일 없이 직접 실행.
더 많은 정보: <https://typestrong.org/ts-node/docs/options/>.
ts-node {{path/to/file.ts}}
TypeScript 파일을 컴파일 없이 실행 (Node + `tsc`):
ts-node --skipProject {{path/to/file.ts}}
`tsconfig.json`을 로드하지 않고 TypeScript 파일 실행:
ts-node {{[-e|--eval]}} '{{console.log("Hello World")}}'
리터럴로 전달된 TypeScript 코드 평가:
