Home / npm packages / colors

colors source code

Every file of colors@1.4.0 as published on npm: 21 files, 40 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env.

What colors uses

APIIn colors
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
Yes: 1 file
e.g. lib/system/supports-colors.js
See the lines
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
lib/colors.js5.9 KB
README.md4.6 KB
lib/system/supports-colors.js4.0 KB
lib/extendStringPrototype.js3.3 KB
index.d.ts2.9 KB
lib/custom/zalgo.js2.9 KB
lib/styles.js2.5 KB
examples/safe-string.js2.1 KB
examples/normal-usage.js2.0 KB
safe.d.ts1.9 KB
lib/custom/trap.js1.7 KB
lib/system/has-flag.js1.4 KB
LICENSE1.2 KB
package.json1.0 KB
lib/maps/random.js454 B
lib/index.js369 B
lib/maps/rainbow.js311 B
lib/maps/america.js278 B
safe.js248 B
themes/generic-logging.js199 B
lib/maps/zebra.js146 B

Questions

How many files are in colors?

Version 1.4.0 of colors publishes 21 files of source, 40 KB in all, not counting images, fonts and source maps.

Does colors use eval?

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

Does colors start other programs?

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

Does colors run an install script?

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