Home / npm packages / should

should source code

Every file of should@13.2.3 as published on npm: 10 files, 408 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), XMLHttpRequest.

What should uses

APIIn should
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 5 files
e.g. as-function.js
See the lines
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
Yes: 1 file
e.g. should.js
See the lines
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
should.js122 KB
cjs/should.js84 KB
es6/should.js84 KB
as-function.js84 KB
History.md14 KB
Readme.md7.8 KB
should.d.ts7.8 KB
package.json2.0 KB
CONTRIBUTING.md1.2 KB
LICENSE1.1 KB

Questions

How many files are in should?

Version 13.2.3 of should publishes 10 files of source, 408 KB in all, not counting images, fonts and source maps.

Does should use eval?

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

Does should start other programs?

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

Does should run an install script?

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