Home / npm packages / detect-libc

detect-libc source code

Every file of detect-libc@2.1.2 as published on npm: 8 files, 26 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, the fs module.

What detect-libc uses

APIIn detect-libc
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
Yes: 1 file
e.g. lib/detect-libc.js
See the lines
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 1 file
e.g. lib/filesystem.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
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
LICENSE11 KB
lib/detect-libc.js7.5 KB
README.md3.2 KB
package.json1.3 KB
lib/filesystem.js1.1 KB
lib/elf.js982 B
lib/process.js569 B
index.d.ts436 B

Questions

How many files are in detect-libc?

Version 2.1.2 of detect-libc publishes 8 files of source, 26 KB in all, not counting images, fonts and source maps.

Does detect-libc use eval?

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

Does detect-libc start other programs?

Yes: detect-libc uses child_process in 1 of its files.

Does detect-libc run an install script?

No: detect-libc 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