Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 26, 2024 via pnpm

ts-node 10.9.2

TypeScript execution environment and REPL for node.js, with source map support
Package summary
Share
0
issues
4
licenses
17
MIT
1
BSD-3-Clause
1
ISC
1
Apache-2.0
Package created
18 Sep 2015
Version published
8 Dec 2023
Maintainers
2
Total deps
20
Direct deps
15
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
17 Packages, Including:
@cspotcode/source-map-support@0.8.1
@jridgewell/resolve-uri@3.1.2
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.9
@tsconfig/node10@1.0.11
@tsconfig/node12@1.0.11
@tsconfig/node14@1.0.3
@tsconfig/node16@1.0.4
@types/node@20.12.7
acorn-walk@8.3.2
acorn@8.11.3
arg@4.1.3
create-require@1.1.1
ts-node@10.9.2
undici-types@5.26.5
v8-compile-cache-lib@3.0.1
yn@3.1.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
diff@4.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
make-error@1.3.6

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
typescript@5.4.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

15
All Dependencies CSV
β“˜ This is a list of ts-node 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@cspotcode/source-map-support0.8.130.68 kBMIT
prod
@tsconfig/node101.0.112.26 kBMIT
prod
@tsconfig/node121.0.111.32 kBMIT
prod
@tsconfig/node141.0.31.3 kBMIT
prod
@tsconfig/node161.0.41.28 kBMIT
prod
@types/node20.12.71.94 MBMIT
prod peer
acorn-walk8.3.29.29 kBMIT
prod
acorn8.11.3122.89 kBMIT
prod
arg4.1.35.23 kBMIT
prod
create-require1.1.12.65 kBMIT
prod
diff4.0.299.91 kBBSD-3-Clause
prod
make-error1.3.64.33 kBISC
prod
typescript5.4.530.87 MBApache-2.0
prod peer
v8-compile-cache-lib3.0.16.24 kBMIT
prod
yn3.1.12.67 kBMIT
prod

Visualizations

Frequently Asked Questions

What does ts-node do?

Ts-node is a TypeScript execution and REPL for Node.js. It provides a runtime environment that transpiles TypeScript into JavaScript on the fly for immediate execution. The key advantage is the ability to directly run TypeScript files on Node.js, making it an ideal tool for TypeScript development and testing. ts-node also supports source maps for easy debugging.

How do you use ts-node?

To utilize ts-node, first install it, along with TypeScript, as a local project dependency in your Node.js project:

npm install -D typescript ts-node

You can also install it globally:

npm install -g typescript ts-node

In addition to the standard installation, for certain configurations, you might need tslib and @types/node:

npm install -D tslib @types/node

Once installed, you can use ts-node in several ways:

Executing a TypeScript script

ts-node script.ts

Start a TypeScript REPL

ts-node

Execute code directly with TypeScript

ts-node -e 'console.log("Hello, world!")'

Pipe TypeScript scripts for execution

echo 'console.log("Hello, world!")' | ts-node

Create a Shebang in your TypeScript files

#!/usr/bin/env ts-node
console.log("Hello, world!")

Where are the ts-node docs?

The documentation for ts-node can be found on the official TypeStrong website. The website offers a comprehensive guide to the functionality of ts-node, including installation instructions, CLI usage, configuration options, Advanced usage, and more.