Home / npm packages / typescript

typescript source code

Every file of typescript@7.0.2 as published on npm: 234 files, 1.5 MB. Search them by exact text or regex, in milliseconds.

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

What typescript uses

APIIn typescript
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: 5 files
e.g. dist/api/async/client.js
See the lines
process.env
reads environment variables
Yes: 1 file
e.g. vendor/vscode-jsonrpc/lib/node/main.js
See the lines
the fs module
reads and writes files
Yes: 3 files
e.g. lib/getExePath.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
Yes: 1 file
e.g. vendor/vscode-jsonrpc/lib/node/main.js
See the lines
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
dist/ast/factory.generated.js145 KB
dist/ast/scanner.js112 KB
dist/ast/factory.generated.d.ts67 KB
dist/ast/ast.generated.d.ts65 KB
dist/api/async/api.js62 KB
dist/api/sync/api.js61 KB
dist/ast/visitor.generated.js61 KB
vendor/vscode-jsonrpc/lib/common/connection.js53 KB
NOTICE.txt49 KB
dist/ast/is.generated.js43 KB
dist/ast/is.generated.d.ts33 KB
dist/api/node/node.generated.js29 KB
dist/enums/syntaxKind.enum.js28 KB
dist/enums/syntaxKind.js28 KB
dist/api/async/api.d.ts28 KB
dist/api/sync/api.d.ts27 KB
dist/ast/astnav.js25 KB
dist/api/syncChannel.js22 KB
vendor/vscode-jsonrpc/lib/common/connection.d.ts21 KB
dist/api/path.js20 KB
dist/api/node/protocol.generated.js15 KB
vendor/vscode-jsonrpc/lib/common/messages.js14 KB
dist/api/async/types.d.ts13 KB
dist/api/sync/types.d.ts13 KB
dist/api/node/node.js13 KB
vendor/vscode-jsonrpc/lib/common/messages.d.ts13 KB
vendor/vscode-jsonrpc/lib/common/linkedMap.js12 KB
dist/ast/is.js12 KB
dist/api/node/encoder.js12 KB
vendor/vscode-jsonrpc/lib/common/api.js11 KB

Questions

How many files are in typescript?

Version 7.0.2 of typescript publishes 234 files of source, 1.5 MB in all, not counting images, fonts and source maps.

Does typescript use eval?

No: typescript doesn't call eval() anywhere in its published files.

Does typescript start other programs?

Yes: typescript uses child_process in 5 of its files.

Does typescript run an install script?

No: typescript 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