Home / npm packages / diff

diff source code

Every file of diff@9.0.0 as published on npm: 94 files, 562 KB. Search them by exact text or regex, in milliseconds.

It uses: none of the APIs we check for.

What diff uses

APIIn diff
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
NoWho does
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
dist/diff.js111 KB
release-notes.md45 KB
dist/diff.min.js37 KB
README.md36 KB
libcjs/patch/parse.js24 KB
libesm/patch/parse.js24 KB
libcjs/patch/create.js15 KB
libesm/patch/create.js15 KB
libcjs/diff/word.js15 KB
libcjs/types.d.ts15 KB
libesm/types.d.ts15 KB
libesm/diff/word.js14 KB
libcjs/patch/apply.js13 KB
libesm/patch/apply.js13 KB
libcjs/diff/base.js12 KB
libesm/diff/base.js12 KB
libcjs/patch/create.d.ts9.2 KB
libesm/patch/create.d.ts9.2 KB
libcjs/util/string.js7.7 KB
libesm/util/string.js7.1 KB
libcjs/index.js6.1 KB
eslint.config.mjs5.4 KB
libcjs/patch/apply.d.ts4.7 KB
libesm/patch/apply.d.ts4.7 KB
package.json3.8 KB
libcjs/diff/json.js3.3 KB
libcjs/patch/reverse.js3.2 KB
libesm/patch/reverse.js3.1 KB
libcjs/diff/line.js3.0 KB
libesm/diff/json.js2.9 KB

Questions

How many files are in diff?

Version 9.0.0 of diff publishes 94 files of source, 562 KB in all, not counting images, fonts and source maps.

Does diff use eval?

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

Does diff start other programs?

No: diff doesn't use child_process anywhere in its published files.

Does diff run an install script?

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