Home / npm packages / source-map

source-map source code

Every file of source-map@0.8.0 as published on npm: 18 files, 137 KB. Search them by exact text or regex, in milliseconds.

It uses: the fs module, fetch(), WebAssembly.

What source-map uses

APIIn source-map
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
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 1 file
e.g. lib/read-wasm.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 1 file
e.g. lib/read-wasm-browser.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
Yes: 1 file
e.g. lib/wasm.js
See the lines
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
lib/source-map-consumer.js34 KB
README.md27 KB
lib/source-map-generator.js14 KB
lib/source-node.js14 KB
source-map.d.ts14 KB
lib/util.js12 KB
lib/binary-search.js4.2 KB
lib/wasm.js3.7 KB
lib/base64-vlq.js3.5 KB
package.json2.8 KB
lib/array-set.js2.4 KB
lib/mapping-list.js2.3 KB
LICENSE1.5 KB
lib/read-wasm.js669 B
lib/read-wasm-browser.js602 B
lib/base64.js582 B
lib/url.js476 B
source-map.js405 B

Questions

How many files are in source-map?

Version 0.8.0 of source-map publishes 18 files of source, 137 KB in all, not counting images, fonts and source maps.

Does source-map use eval?

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

Does source-map start other programs?

No: source-map doesn't use child_process anywhere in its published files.

Does source-map run an install script?

No: source-map 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