# typenode

> Run TypeScript files directly in Node, no build step.

Latest version **6.6.1** (published 2026-07-08) · MIT license · 0 weekly downloads

## Install

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

Provides the command `typenode`.

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 6.6.1 |
| Published | 2026-07-08 |
| First published | 2022-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 38.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sliftist |

## Links

- npm: https://www.npmjs.com/package/typenode
- npm.io page: https://npm.io/package/typenode

## Dependencies (3)

- [typescript](https://npm.io/package/typescript.md) 5.3.3
- [@types/pegjs](https://npm.io/package/@types/pegjs.md) ^0.10.3
- [source-map-support](https://npm.io/package/source-map-support.md) https://github.com/7rulnik/node-source-map-support

## Recent versions

- 6.6.1 (latest) — 2026-07-08
- 6.6.0 — 2026-07-08
- 6.5.0 — 2026-07-08
- 6.4.0 — 2026-07-08
- 6.3.0 — 2026-07-08
- 6.2.0 — 2026-07-08
- 6.1.1 — 2026-07-08
- 6.1.0 — 2026-07-08
- 6.0.1 — 2026-01-02
- 6.0.0 — 2025-11-29
- 5.14.0 — 2025-11-29
- 5.13.0 — 2025-11-20
- 5.12.0 — 2025-06-14
- 5.11.0 — 2025-05-17
- 5.10.0 — 2025-05-14
- … 57 more at https://npm.io/package/typenode/versions

## README

# typenode

Run TypeScript files directly in Node, no build step.

## Install

```sh
yarn add typenode
```

## Usage

```sh
yarn typenode ./src/main.ts
```

Or, if installed as a dependency, via the `typenode` bin:

```sh
typenode ./src/main.ts
```

Any extra arguments are passed through to your script. Node is launched with a large heap (`--max-old-space-size=128000`), `--expose-gc`, and source map support, so stack traces point at your `.ts` source.

## Caching

Compiled output is cached on disk next to the source file, in a `dist/` folder (e.g. `src/foo.ts` → `src/dist/foo.ts.cache`). The cache key is a hash of the file contents plus the transform pipeline, so edits invalidate it automatically — there's nothing to clean manually.

## --npminstall

Pass `--npminstall` to automatically run `npm install` when an imported dependency is missing or its installed version doesn't match your `package.json`. This is off by default, since running install commands on your project shouldn't happen implicitly.

```sh
yarn typenode ./src/main.ts --npminstall
```

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