</>PackageGraphPackageGraph

ts-node

npmv10.9.2TypeScript

TypeScript execution environment and REPL for node.js, with source map support

Adopt with care

ts-node is usable, with caveats. Last published 1006 days ago.

  • AAdoption: grade A, Excellent.

    42.2M downloads per week and 38 known dependents.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 1006 days ago.

  • BWeight: grade B, Good.

    Pulls in 16 transitive packages, about 2.3 MB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding ts-node to a project.

13
Direct dependencies

Runtime packages this one declares itself.

16
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

2.3 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BSD-3-ClauseISCMIT

Every license you inherit by installing ts-node, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the ts-node README.

Including options within the shebang requires the [`env -S` flag](https://manpages.debian.org/bullseye/coreutils/env.1.en.html#S), which is available on recent versions of `env`. ([compatibility](https://github.com/TypeStrong/ts-node/pull/1448#issuecomment-913895766))

```typescript twoslash
#!/usr/bin/env -S ts-node --files
// This shebang works on Mac and Linux with newer versions of env
// Technically, Mac allows omitting `-S`, but Linux requires it

ts-node vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
ts-nodethis page42.2M38MIT2 years ago
tsx61.9M26MIT1 day ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
drizzle-orm19M0Apache-2.01 day ago
valibot16.8M5MIT1 day ago
sql-escaper5M1MIT1 day ago

Dependencies

Declared by ts-node v10.9.2. Runtime dependencies are installed with the package; dev dependencies are not.

Peer (4)

@swc/core >=1.2.50@swc/wasm >=1.2.50@types/node *typescript >=2.7

Dev (31)

@microsoft/api-extractor ^7.19.4@swc/core ^1.3.100@swc/wasm ^1.3.100@types/diff ^4.0.2@types/lodash ^4.14.151@types/node 13.13.5@types/proper-lockfile ^4.1.2@types/proxyquire ^1.3.28@types/react ^16.14.19@types/rimraf ^3.0.0@types/semver ^7.1.0@yarnpkg/fslib ^2.4.0ava ^3.15.0axios ^0.21.1dprint ^0.25.0expect ^27.0.2get-stream ^6.0.0lodash ^4.17.15ntypescript ^1.201507091536.1nyc ^15.0.1outdent ^0.8.0proper-lockfile ^4.1.2proxyquire ^2.0.0react ^16.14.0rimraf ^3.0.0semver ^7.1.3throat ^6.0.1typedoc ^0.22.10typescript 4.7.4typescript-json-schema ^0.53.0util.promisify ^1.0.1

Used by

Popular packages that depend on ts-node.

rxjsnpm

Reactive Extensions for modern JavaScript

90.9M/wk6 dependentsApache-2.0TS
istanbul-lib-source-mapsnpm

Source maps support for istanbul

55.8M/wk5 dependentsBSD-3-Clause
fflatenpm

High performance (de)compression in an 8kB package

53.5M/wk1 dependentsMITTS
socksnpm

Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.

51.6M/wk2 dependentsMITTS
pg-protocolnpm

The postgres client/server binary protocol, implemented in TypeScript

43.8M/wk2 dependentsMITTS
@testing-library/user-eventnpm

Fire events the same way the user does

35.3M/wk4 dependentsMITTS
memoize-onenpm

A memoization library which only remembers the latest invocation

32.7M/wk3 dependentsMITTS
netmasknpm

Parse and lookup IP network blocks

19.5M/wk1 dependentsMITTS
mongodb-connection-string-urlnpm

MongoDB connection strings, based on the WhatWG URL API

8.8M/wk1 dependentsApache-2.0TS
sync-message-portnpm

A Node.js communication port that can pass messages synchronously between workers

4.8M/wk1 dependentsMITTS
mongodb-client-encryptionnpm

Official client encryption module for the MongoDB Node.js driver

211.1K/wk2 dependentsApache-2.0TS
mongodbnpm

The official MongoDB driver for Node.js

0/wk3 dependentsApache-2.0TS
knexnpm

A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3

0/wk1 dependentsMITTS
sync-child-processnpm

Run a subprocess synchronously and interactively in Node.js

0/wk1 dependentsMITTS
bsonnpm

A bson parser for node.js and the browser

0/wk3 dependentsApache-2.0TS
@planetscale/databasenpm

A Fetch API-compatible PlanetScale database driver

0/wk1 dependentsApache-2.0TS
pg-cloudflarenpm

A socket implementation that can run on Cloudflare Workers using native TCP connections.

0/wk1 dependentsMITTS
deepmergenpm

A library for deep (recursive) merging of Javascript objects

0/wk5 dependentsMIT
strict-event-emitternpm

Type-safe implementation of EventEmitter for browser and Node.js

0/wk2 dependentsMITTS
outvariantnpm

Type-safe implementation of invariant with positionals.

0/wk3 dependentsMITTS
signal-exitnpm

when you want to fire an event no matter how a process exits.

0/wk2 dependentsISCTS
locate-appnpm

Find apps installed on your system. This util will help to find executables of a known app like Chrome, Firefox,... on Windows, Linux, and macOS out of the box.

0/wk1 dependentsApache-2.0TS
edgedrivernpm

Microsofts' EdgeDriver for Node.js

0/wk1 dependentsMITTS
geckodrivernpm

Mozilla's Geckodriver for Node.js

0/wk2 dependentsMITTS

Relationship graph

Dependencies (left) and dependents (right) of ts-node.

Frequently installed together

Release history

No releases in the last two years, typically about 29 days apart.

Recent versions of ts-node
VersionPublishedSizeLicense
10.9.2latest2 years ago740 KBMIT
11.0.0-beta.12 years ago724 KBMIT
10.9.14 years ago729 KBMIT
10.9.04 years ago728 KBMIT
10.8.24 years ago707 KBMIT
10.8.14 years ago707 KBMIT
10.8.04 years ago706 KBMIT
10.7.04 years ago612 KBMIT
10.6.04 years ago577 KBMIT
10.5.04 years ago563 KBMIT
10.4.04 years ago533 KBMIT
10.3.14 years ago528 KBMIT
10.3.04 years ago528 KBMIT
10.2.15 years ago508 KBMIT
10.2.05 years ago508 KBMIT

Overview

ts-node is an npm package that typeScript execution environment and REPL for node.js, with source map support. It is extremely widely used, with about 42.2M downloads per week and 38 known dependents in the graph. The latest version is 10.9.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need typeScript execution environment and REPL for node.js, with source map support and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (42.2M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (48 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use ts-node?

ts-node is usable, with caveats. Last published 1006 days ago.

How do I install ts-node?

Run `npm install ts-node` to add ts-node to your npm project.

How many dependencies does ts-node have?

ts-node declares 48 direct dependencies and pulls in 16 packages in total once its runtime tree is resolved totalling about 2.3 MB on disk.

What license is ts-node released under?

ts-node is distributed under the MIT license. Its dependency tree also includes: BSD-3-Clause, ISC, MIT.

How popular is ts-node?

ts-node has approximately 42,173,859 downloads per week and 38 known dependent packages.

Is ts-node still maintained?

The most recent release of ts-node (v10.9.2) was published 2 years ago.

Does ts-node run install scripts?

No. ts-node does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.