# tsx

> TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files

Latest version **4.23.13** (published 2026-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install tsx
pnpm add tsx
yarn add tsx
bun add tsx
```

Provides the command `tsx`.

## Health

**Score 70/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 4.23.13 |
| Published | 2026-08-30 |
| First published | 2015-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18.0.0 |
| Dependencies | 1 |
| Unpacked size | 520.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12137 |
| Author | Hiroki Osame |
| Maintainers | hirokiosame |
| Keywords | cli, runtime, node, cjs, commonjs, esm, typescript, typescript runner |

## Links

- npm: https://www.npmjs.com/package/tsx
- Repository: https://github.com/privatenumber/tsx
- Homepage: https://tsx.hirok.io
- Issues: https://github.com/privatenumber/tsx/issues
- npm.io page: https://npm.io/package/tsx

## Dependencies (1)

- [esbuild](https://npm.io/package/esbuild.md) ~0.28.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 4.23.13 (latest) — 2026-08-30
- 4.23.12 — 2026-08-10
- 4.23.11 — 2026-08-07
- 4.23.10 — 2026-08-07
- 4.23.9 — 2026-08-06
- 4.23.8 — 2026-08-05
- 4.23.7 — 2026-08-05
- 4.23.6 — 2026-08-05
- 4.23.5 — 2026-08-02
- 4.23.4 — 2026-08-02
- 4.23.3 — 2026-08-02
- 4.23.2 — 2026-08-02
- 4.23.1 — 2026-07-13
- 4.23.0 — 2026-07-03
- 4.22.5 — 2026-07-02
- … 125 more at https://npm.io/package/tsx/versions

## README

<h1 align="center">
<br>
<picture>
	<source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
	<img width="160" alt="tsx" src=".github/logo-light.svg">
</picture>
<br><br>
<a href="https://npm.im/tsx"><img src="https://badgen.net/npm/v/tsx"></a> <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/dm/tsx"></a>
</h1>

<p align="center">
TypeScript Execute (tsx): The easiest way to run TypeScript in Node.js
<br><br>
<a href="https://tsx.hirok.io">Documentation</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://tsx.hirok.io/getting-started">Getting started →</a>
</p>

<br>

<p align="center">
	<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a>
	<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=416984"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a>
</p>
<p align="center"><sup><i>Already a sponsor?</i> Join the discussion in the <a href="https://github.com/pvtnbr/tsx">Development repo</a>!</sup></p>

## Sponsors

<p align="center">
	<a href="https://github.com/sponsors/privatenumber">
		<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
	</a>
</p>

---
_Source: https://npm.io/package/tsx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
