# Install tsx with npm

TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files. Version 4.22.4 via npm; verified 2026-07-03.

## Install

```sh
sudo av install npm:tsx
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g tsx
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:tsx
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/tsx>
- **Version:** 4.22.4
- **Source summary:** TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
- **Homepage:** <https://tsx.hirok.io>
- **Repository:** <https://github.com/privatenumber/tsx>
- **Upstream docs:** <https://tsx.hirok.io>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/tsx/-/tsx-4.22.4.tgz>
- **Issue tracker:** <https://github.com/privatenumber/tsx/issues>
- **Published:** 2026-05-31T12:22:19.330Z
- **Last updated:** 2026-07-03T14:25:06.153Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tsx (cli)
- tsx (alias)

## Dependencies

- esbuild

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.22.4
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://github.com/privatenumber/tsx
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for tsx. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.22.4
- **Version Count:** 125
- **Maintainers:** hirokiosame
- **Author:** Hiroki Osame
- **Publisher:** GitHub Actions
- **Engines:** Node: >=18.0.0
- **Optional Dependencies:** fsevents
- **Integrity:** sha512-X8EX+XV4QR5xCsrgxaED954zTDfY8KqlDtskKEL0cHhyS/P8b4IFOvGDQpsC9Q1XnLq915wEfwwY/zzskCtmhg==
- **Shasum:** 0ab3b7fb4ec7feeee74e5b1f26337caa71e44700
- **Unpacked Size:** 518,418
- **File Count:** 0
- **Created At:** 2015-08-20T01:25:39.249Z
- **Latest Published At:** 2026-05-31T12:22:19.330Z
- **Modified At:** 2026-05-31T12:22:19.581Z

## Other Package-Manager Records

- Nix - tsx: normalized package name match | nixpkgs package indexes: pkgs/by-name/ts/tsx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - tsx: normalized package name match | MacPorts ports tree: devel/tsx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched curated package taxonomy and local package facts.
- [esno](https://www.automicvault.com/pkg/npm/esno/) - Both packages touch the same language runtime or ecosystem. Shared terms: enhanced, esbuild, esm, node, node-js.
- [pkgroll](https://www.automicvault.com/pkg/npm/pkgroll/) - Both packages touch the same language runtime or ecosystem. Shared terms: cjs, commonjs, esbuild, esm, node.
- [esbuild-runner](https://www.automicvault.com/pkg/npm/esbuild-runner/) - Both packages touch the same language runtime or ecosystem. Shared terms: cjs, commonjs, esbuild, esm, node.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
