{"id":26391044,"url":"https://github.com/nomadicgopher/typescript_to_javascript","last_synced_at":"2025-03-17T10:17:51.192Z","repository":{"id":269934590,"uuid":"908895853","full_name":"nomadicGopher/TypeScript_to_JavaScript","owner":"nomadicGopher","description":"A TS to JS CLI interpreter. Includes features for minification as-well as custom src file path \u0026 streaming threshold.","archived":false,"fork":false,"pushed_at":"2025-03-15T05:29:44.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T06:27:03.250Z","etag":null,"topics":["interpreter","javascript","typescript"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomadicGopher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","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},"funding":{"github":"nomadicGopher"}},"created_at":"2024-12-27T08:28:22.000Z","updated_at":"2025-03-15T05:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d93138c7-abbf-4a4d-a67d-c3c3149cb77b","html_url":"https://github.com/nomadicGopher/TypeScript_to_JavaScript","commit_stats":null,"previous_names":["nomadicgopher/typescript2javascript","nomadicgopher/typescript_to_javascript"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadicGopher%2FTypeScript_to_JavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadicGopher%2FTypeScript_to_JavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadicGopher%2FTypeScript_to_JavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadicGopher%2FTypeScript_to_JavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomadicGopher","download_url":"https://codeload.github.com/nomadicGopher/TypeScript_to_JavaScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014178,"owners_count":20383716,"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":["interpreter","javascript","typescript"],"created_at":"2025-03-17T10:17:47.562Z","updated_at":"2025-03-17T10:17:50.434Z","avatar_url":"https://github.com/nomadicGopher.png","language":"Go","readme":"## Instructions\n1. Download your OS's version of the program from [Releases](https://github.com/nomadicGopher/TypeScript_to_JavaScript/releases).\n    * **TypeScript_to_JavaScript.exe**: Windows\n    * **TypeScript_to_JavaScript**: Linux\n2. Add a scripts.ts file in the same directory, or remember to set the -file command-line-argument if it is outside the program's directory.\n3. Run the program with the following potential flags:\n\n```\n-file string\n    Path to the TypeScript file. (default \"scripts.ts\")\n-minify bool\n    Minify the JavaScript output.\n-stream float64\n    File streaming minimum threshold in megabytes. (default 2.5)\n```\n\n## Sample TypeScript content\n```typescript\n// Define an interface for a Person\ninterface Person {\n  firstName: string;\n  lastName: string;\n  age: number;\n  greet(): string;\n}\n\n// Create a class that implements the Person interface\nclass Student implements Person {\n  firstName: string;\n  lastName: string;\n  age: number;\n  studentId: number;\n\n  constructor(firstName: string, lastName: string, age: number, studentId: number) {\n    this.firstName = firstName;\n    this.lastName = lastName;\n    this.age = age;\n    this.studentId = studentId;\n  }\n\n  // Implement the greet method\n  greet(): string {\n    return `Hello, my name is ${this.firstName} ${this.lastName} and I am ${this.age} years old.`;\n  }\n\n  // Additional method to get the student ID\n  getStudentId(): number {\n    return this.studentId;\n  }\n}\n\n// Create an instance of the Student class\nconst student = new Student(\"John\", \"Doe\", 20, 12345);\n\n// Call the greet method\nconsole.log(student.greet());\n\n// Call the getStudentId method\nconsole.log(`My student ID is ${student.getStudentId()}.`);\n```\n","funding_links":["https://github.com/sponsors/nomadicGopher"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomadicgopher%2Ftypescript_to_javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomadicgopher%2Ftypescript_to_javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomadicgopher%2Ftypescript_to_javascript/lists"}