Home / npm packages / promise

promise source code

Every file of promise@8.3.0 as published on npm: 43 files, 109 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), the fs module, crypto.

What promise uses

APIIn promise
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 4 files
e.g. domains/node-extensions.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
Yes: 2 files
e.g. build.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. build.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
index.d.ts18 KB
Readme.md12 KB
src/core.js5.1 KB
src/es6-extensions.js4.8 KB
lib/core.js4.8 KB
domains/core.js4.8 KB
setimmediate/core.js4.8 KB
domains/es6-extensions.js4.8 KB
lib/es6-extensions.js4.8 KB
setimmediate/es6-extensions.js4.8 KB
domains/node-extensions.js3.3 KB
lib/node-extensions.js3.3 KB
src/node-extensions.js3.3 KB
setimmediate/node-extensions.js3.3 KB
src/rejection-tracking.js3.0 KB
domains/rejection-tracking.js2.9 KB
lib/rejection-tracking.js2.9 KB
setimmediate/rejection-tracking.js2.9 KB
build.js2.3 KB
index.js.flow1.7 KB
src/synchronous.js1.4 KB
domains/synchronous.js1.4 KB
lib/synchronous.js1.4 KB
setimmediate/synchronous.js1.4 KB
package.json1.1 KB
LICENSE1.1 KB
polyfill-done.js350 B
domains/finally.js345 B
lib/finally.js345 B
setimmediate/finally.js345 B

Questions

How many files are in promise?

Version 8.3.0 of promise publishes 43 files of source, 109 KB in all, not counting images, fonts and source maps.

Does promise use eval?

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

Does promise start other programs?

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

Does promise run an install script?

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