Home / npm packages / @swc/core

@swc/core source code

Every file of @swc/core@1.16.13 as published on npm: 14 files, 134 KB. Search them by exact text or regex, in milliseconds.

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

What @swc/core uses

APIIn @swc/core
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. binding.js
See the lines
process.env
reads environment variables
Yes: 4 files
e.g. binding.js
See the lines
the fs module
reads and writes files
Yes: 2 files
e.g. binding.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
Yes: 1 file
e.g. package.json
See the lines

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

Largest files

FileSize
Visitor.js48 KB
index.js19 KB
Visitor.d.ts18 KB
LICENSE11 KB
binding.js9.5 KB
postinstall.js6.9 KB
index.d.ts4.8 KB
README.md4.5 KB
spack.js3.5 KB
package.json3.3 KB
util.js3.1 KB
binding.d.ts2.5 KB
spack.d.ts1.3 KB
util.d.ts60 B

Questions

How many files are in @swc/core?

Version 1.16.13 of @swc/core publishes 14 files of source, 134 KB in all, not counting images, fonts and source maps.

Does @swc/core use eval?

No: @swc/core doesn't call eval() anywhere in its published files.

Does @swc/core start other programs?

Yes: @swc/core uses child_process in 2 of its files.

Does @swc/core run an install script?

Yes: @swc/core has an install script in its package.json, so it runs code when it's installed.

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