{"id":13469623,"url":"https://github.com/lukeed/tsm","last_synced_at":"2025-05-14T22:08:33.011Z","repository":{"id":39374445,"uuid":"413679567","full_name":"lukeed/tsm","owner":"lukeed","description":"TypeScript Module Loader","archived":false,"fork":false,"pushed_at":"2024-01-20T17:10:20.000Z","size":116,"stargazers_count":1194,"open_issues_count":11,"forks_count":19,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-04T13:02:35.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/lukeed.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/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},"funding":{"github":"lukeed"}},"created_at":"2021-10-05T05:00:03.000Z","updated_at":"2025-05-01T23:01:19.000Z","dependencies_parsed_at":"2024-01-20T18:24:57.064Z","dependency_job_id":"9b1299ff-ee9e-474b-807f-22b8072b6913","html_url":"https://github.com/lukeed/tsm","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Ftsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Ftsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Ftsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Ftsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukeed","download_url":"https://codeload.github.com/lukeed/tsm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235700,"owners_count":22036964,"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":[],"created_at":"2024-07-31T15:01:47.274Z","updated_at":"2025-05-14T22:08:27.994Z","avatar_url":"https://github.com/lukeed.png","language":"TypeScript","funding_links":["https://github.com/sponsors/lukeed"],"categories":["TypeScript","Tools","others","Loaders / Execution Tools"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"tsm\" width=\"200\" /\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/tsm\"\u003e\n    \u003cimg src=\"https://badgen.net/npm/v/tsm\" alt=\"version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/lukeed/tsm/actions\"\u003e\n    \u003cimg src=\"https://github.com/lukeed/tsm/workflows/CI/badge.svg\" alt=\"CI\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://licenses.dev/npm/tsm\"\u003e\n    \u003cimg src=\"https://licenses.dev/b/npm/tsm\" alt=\"licenses\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/tsm\"\u003e\n    \u003cimg src=\"https://badgen.net/npm/dm/tsm\" alt=\"downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://packagephobia.now.sh/result?p=tsm\"\u003e\n    \u003cimg src=\"https://badgen.net/packagephobia/publish/tsm\" alt=\"publish size\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003eTypeScript Module Loader\u003c/div\u003e\n\n## Features\n\n* Supports `node \u003cfile\u003e` usage\n* Supports [ESM `--loader`](https://nodejs.org/api/esm.html#esm_loaders) usage\u003csup\u003e†\u003c/sup\u003e\n* Supports [`--require` hook](https://nodejs.org/api/cli.html#cli_r_require_module) usage\n* Optional [configuration](/docs/configuration.md) file for per-extension customization\n\n\u003e \u003csup\u003e†\u003c/sup\u003e The ESM Loader API is still **experimental** and will change in the future.\n\n## Install\n\n```sh\n# install as project dependency\n$ npm install --save-dev tsm\n\n# or install globally\n$ npm install --global tsm\n```\n\n## Usage\n\n\u003e **Note:** Refer to [`/docs/usage.md`](/docs/usage.md) for more information.\n\n```sh\n# use as `node` replacement\n$ tsm server.ts\n\n# forwards any `node` ENV or flags\n$ NO_COLOR=1 tsm server.ts --trace-warnings\n\n# use as `--require` hook\n$ node --require tsm server.tsx\n$ node -r tsm server.tsx\n\n# use as `--loader` hook\n$ node --loader tsm main.jsx\n```\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Ftsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeed%2Ftsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Ftsm/lists"}