{"id":19294190,"url":"https://github.com/mdecker-mobilecomputing/typescript_grundlagen","last_synced_at":"2025-07-27T15:37:33.592Z","repository":{"id":119792458,"uuid":"165415296","full_name":"MDecker-MobileComputing/TypeScript_Grundlagen","owner":"MDecker-MobileComputing","description":"Some files with simple examples for programming with TypeScript.","archived":false,"fork":false,"pushed_at":"2024-11-12T09:07:39.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T21:08:45.585Z","etag":null,"topics":["basics","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MDecker-MobileComputing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-12T17:23:35.000Z","updated_at":"2024-11-12T09:07:42.000Z","dependencies_parsed_at":"2024-11-09T22:37:35.643Z","dependency_job_id":"eff740d0-94d8-4ab4-a76f-32daf2b9f22c","html_url":"https://github.com/MDecker-MobileComputing/TypeScript_Grundlagen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FTypeScript_Grundlagen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FTypeScript_Grundlagen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FTypeScript_Grundlagen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FTypeScript_Grundlagen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MDecker-MobileComputing","download_url":"https://codeload.github.com/MDecker-MobileComputing/TypeScript_Grundlagen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240397125,"owners_count":19794798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basics","typescript"],"created_at":"2024-11-09T22:37:29.880Z","updated_at":"2025-02-24T00:23:54.530Z","avatar_url":"https://github.com/MDecker-MobileComputing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grundlagen TypeScript #\r\n\r\n\u003cbr\u003e\r\n\r\nThis Git repository contains [some files](beispiele/) to demonstrate the basic usage of \r\nthe programming language [TypeScript](https://www.typescriptlang.org).\r\nTypeScript is a language by Microsoft, which extends JavaScript (i.e. it is a superset of JavaScript) and can be transpiled to JavaScript, so it can be\r\nexecuted in web browsers.\r\nHowever, the TypeScript files contained in this repositry are to be executed with [Node.js](https://nodejs.org/en/about/) after transpilation.\r\n\r\n\u003cbr\u003e\r\n\r\n----\r\n\r\n## Transpiling to JavaScript ##\r\n\r\n\u003cbr\u003e\r\n\r\nTo transpile a TypeScript file to JavaScript, you need to install [TypeScript](https://www.npmjs.com/package/typescript) first:\r\n````\r\n    npm install -g typescript\r\n````\r\nOn Linux and MacOS you have to prepend a `sudo` in front of this command.\r\n\r\n\u003cbr\u003e\r\n\r\nAfter this a TypeScript file can be transpiled by calling the program `tsc`, e.g.:\r\n````\r\n    tsc Variablen.ts\r\n```` \r\nIf no syntax errors are found, then this will produce a file named `Variablen.js`.\r\n\r\nThis file can then be executed as follows:\r\n````\r\n    node Variablen.ts\r\n```` \r\n\r\n\u003cbr\u003e\r\n\r\nAs default `tsc` will generate JavaScript of version ES3, but you can change this using \r\nthe option `--target`, e.g.:\r\n````\r\n    tsc --target es6 Variablen.ts\r\n```` \r\n\r\n\u003cbr\u003e\r\n\r\n----\r\n\r\n## Executiong with `ts-node` ##\r\n\r\n\u003cbr\u003e\r\n\r\nYou can also use [ts-node](https://www.npmjs.com/package/ts-node) to execute TypeScript files without\r\nexplicit transpilition to JavaScript.\r\nFor this package `ts-node` has to be installed after package `typescript` was installed:\r\n````\r\n    npm install -g ts-node\r\n```` \r\nAgain, on Linux and MacOS you have to prepend a `sudo` in front of this command.\r\n\r\n\u003cbr\u003e\r\n\r\nAfter this you can execute a TypeScript file \"directly\", e.g.:\r\n````\r\n    ts-node Variablen.ts\r\n````\r\n\r\n\u003cbr\u003e\r\n\r\n----\r\n## License ##\r\n\r\n\u003cbr\u003e\r\n\r\nSee the [LICENSE file](LICENSE.md) for license rights and limitations (BSD 3-Clause License)\r\nfor the files in this repository.\r\n\r\n\u003cbr\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdecker-mobilecomputing%2Ftypescript_grundlagen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdecker-mobilecomputing%2Ftypescript_grundlagen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdecker-mobilecomputing%2Ftypescript_grundlagen/lists"}