Home / npm packages / ts-node

ts-node source code

Every file of ts-node@10.9.2 as published on npm: 89 files, 427 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, process.env, the fs module.

What ts-node uses

APIIn ts-node
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
Yes: 2 files
e.g. dist/bin.js
See the lines
process.env
reads environment variables
Yes: 2 files
e.g. dist/index.js
See the lines
the fs module
reads and writes files
Yes: 4 files
e.g. dist-raw/node-internal-modules-cjs-loader.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
tsconfig.schemastore-schema.json72 KB
README.md49 KB
dist/index.js46 KB
dist-raw/node-internal-modules-esm-resolve.js33 KB
dist/bin.js27 KB
dist/repl.js22 KB
dist-raw/node-internal-modules-cjs-loader.js19 KB
dist/configuration.js14 KB
dist/ts-internals.js14 KB
dist/index.d.ts12 KB
dist/esm.js11 KB
tsconfig.schema.json11 KB
dist/transpilers/swc.js9.3 KB
dist-raw/node-internal-repl-await.js8.0 KB
dist/resolver-functions.js7.6 KB
dist/util.js6.1 KB
package.json6.1 KB
dist/file-extensions.js5.7 KB
dist/ts-transpile-module.js4.9 KB
dist-raw/node-internal-errors.js3.9 KB
dist-raw/node-internal-modules-esm-get_format.js3.5 KB
dist/ts-compiler-types.d.ts3.3 KB
dist-raw/node-options.js3.0 KB
dist/repl.d.ts2.9 KB
dist-raw/node-internal-modules-cjs-helpers.js2.7 KB
dist/module-type-classifier.js2.4 KB
dist-raw/node-primordials.js2.3 KB
dist/esm.d.ts2.1 KB
dist-raw/README.md1.9 KB
dist/child/spawn-child.js1.9 KB

Questions

How many files are in ts-node?

Version 10.9.2 of ts-node publishes 89 files of source, 427 KB in all, not counting images, fonts and source maps.

Does ts-node use eval?

No: ts-node doesn't call eval() anywhere in its published files.

Does ts-node start other programs?

Yes: ts-node uses child_process in 2 of its files.

Does ts-node run an install script?

No: ts-node has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine