{"id":15677717,"url":"https://github.com/o-az/xtsz","last_synced_at":"2025-06-21T08:07:16.898Z","repository":{"id":153992141,"uuid":"631334961","full_name":"o-az/xtsz","owner":"o-az","description":"a TypeScript and JavaScript (Node.js) runner that supports HTTP/S imports. It can run ESM and CJS: .ts, .js, .cjs, .mjs.","archived":false,"fork":false,"pushed_at":"2023-06-13T07:10:25.000Z","size":1419,"stargazers_count":13,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-08T23:36:33.942Z","etag":null,"topics":["cli","esbuild","https-import","javascript","nodejs","ts-node","tsx","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/xtsz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/o-az.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-22T17:36:51.000Z","updated_at":"2023-11-29T10:36:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"cda987b0-d638-4393-a615-07d211691217","html_url":"https://github.com/o-az/xtsz","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/o-az/xtsz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-az%2Fxtsz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-az%2Fxtsz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-az%2Fxtsz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-az%2Fxtsz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/o-az","download_url":"https://codeload.github.com/o-az/xtsz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-az%2Fxtsz/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261088358,"owners_count":23107683,"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":["cli","esbuild","https-import","javascript","nodejs","ts-node","tsx","typescript"],"created_at":"2024-10-03T16:10:31.634Z","updated_at":"2025-06-21T08:07:11.881Z","avatar_url":"https://github.com/o-az.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"_**NOTE: youmust be on Node.js LTS (v18) or higher**_\n\nThis is like [tsx](https://github.com/esbuild-kit/tsx) but with https imports support `+` \u003cbr/\u003e ability to run external files directly from CLI `+` \u003cbr/\u003e \nonly 1 dependency: `esbuild`\n\nIf file is `.js`, `.cjs`, `.mjs`, `.ts`, `.cts`, or `.mts`, it will bundled with `esbuild` on the fly then executed with `Node.js`.\n\nIf the file is `css`, `txt`, `md`, `html`, `svg`, `xml`, `yaml`, `yml`, `toml`, `csv`, `sql`, `graphql`, or `gql`  it will be read and printed to the console.\n\n# **`xtsz`**  \n\n### Install\n\n```sh\n# pnpm\npnpm add --global xtsz@latest\n```\n\n```sh\n# yarn\nyarn global add xtsz@latest\n```\n\n```sh\n# npm\nnpm install --global xtsz@latest\n```\n\n### Run\n\n```sh\nxtsz ./path/to/file.ts\n```\n\n#### as a `devDependency`\n\n```sh\n# install\npnpm add --save-dev xtsz@latest\n# run\npnpm dlx xtsz ./path/to/file.ts\n# or\nxtsz https://gist.githubusercontent.com/o-az/e8ed1e89fde52af306099ed28e297cae/raw/f997df001ee197f638af14d09309eb3c060240b0/sample-iife.js\n```\n\n```sh\nxtsz is a TypeScript and JavaScript (Node.js) file runner that supports https-imports and running external files directly from CLI.\nIt can run ESM and CJS: .ts, .js, .cjs, .mjs.\n\nUsage:\n  $ xtsz \u003cfilepath\u003e\n  $ xtsz \u003curl\u003e\n\nOptions:\n  -f, --file  The file to run. Can be passed as a flag or as the only argument with no other flags.\n  -u, --url   The url to run. Can be passed as a flag or as the only argument with no other flags.\n  -h, --help  Show this help message.\n\nExamples:\n  $ xtsz ./src/index.ts\n  $ xtsz --file ./src/index.cjs\n\n  $ xtsz https://gist.githubusercontent.com/o-az/e8ed1e89fde52af306099ed28e297cae/raw/f997df001ee197f638af14d09309eb3c060240b0/sample-iife.js\n\n  $ xtsz help, --help, -h\n\n  - \"What is https imports?\"\n  See https://nodejs.org/api/esm.html#https-and-http-imports\n\n  - \"How does this package work?\"\n  It uses a custom esbuild plugin to handle https imports and uses Node.js to run TypeScript \u0026 ESM.\n\n    BUGS\n  https://github.com/o-az/xtsz/issues\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-az%2Fxtsz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo-az%2Fxtsz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-az%2Fxtsz/lists"}