{"id":22482331,"url":"https://github.com/cycraft/run-ts","last_synced_at":"2026-02-11T18:35:13.906Z","repository":{"id":241982313,"uuid":"807993260","full_name":"CyCraft/run-ts","owner":"CyCraft","description":"A package that allows to run node scripts written in TypeScript directly.","archived":false,"fork":false,"pushed_at":"2025-02-19T18:58:30.000Z","size":353,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-21T08:34:52.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyCraft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2024-05-30T07:10:04.000Z","updated_at":"2025-02-19T18:58:33.000Z","dependencies_parsed_at":"2024-06-06T01:26:35.484Z","dependency_job_id":"e49b3a84-5d48-4fb3-bfd0-10fa28d04466","html_url":"https://github.com/CyCraft/run-ts","commit_stats":null,"previous_names":["cycraft/run-ts"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/CyCraft/run-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCraft%2Frun-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCraft%2Frun-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCraft%2Frun-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCraft%2Frun-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyCraft","download_url":"https://codeload.github.com/CyCraft/run-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyCraft%2Frun-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29341263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T18:24:36.877Z","status":"ssl_error","status_checked_at":"2026-02-11T18:23:50.867Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-06T16:24:22.552Z","updated_at":"2026-02-11T18:35:13.870Z","avatar_url":"https://github.com/CyCraft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# run-ts 🏃🏼\n\nA very basic package that to run typescript directly via node. Built for Node v20 \u003e=.\n\n## Installation\n\n```\nnpm i -D @cycraft/run-ts\n```\n\n## Usage\n\nIse the `--import` flag to import the register code before executing your TS file directly:\n\n```json\n\"scripts\": {\n  \"execute-my-script\": \"node --import @cycraft/run-ts ./src/index.ts\",\n}\n```\n\n## Notes\n\n\u003e Is it flexible?\n\u003e Is it generic?\n\n🤷 There's probably more flexible and generic ways of doing this. This however works for us, covering our use cases.\n\n\u003e Does it do typechecking?\n\nNo. It builds each file using esbuild when it's first imported, so doesn't do any typechecking. Use tsc or some other method to do typechecking.\n\n\u003e Is it fast?\n\n🤷 Each file is built when it's first imported, on the one hand, it's only building whats necessary, on the other hand, there's 0 optimisation happening.\nAdditionally this is providing some assistance in how node resolves certain files (if you're used to skipping file extensions or index) by checking the existence of any possible files, which could be pretty slow, although it does cache the result.\n\n\u003e Should you use it?\n\nIt's up to you. As mentioned above, it works for our use cases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycraft%2Frun-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcycraft%2Frun-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcycraft%2Frun-ts/lists"}