Home / npm packages / node-addon-api

node-addon-api source code

Every file of node-addon-api@8.9.2 as published on npm: 17 files, 420 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), child_process, process.env, the fs module.

What node-addon-api uses

APIIn node-addon-api
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 3 files
e.g. napi-inl.deprecated.h
See the lines
child_process
starts other programs
Yes: 2 files
e.g. tools/check-napi.js
See the lines
process.env
reads environment variables
Yes: 2 files
e.g. common.gypi
See the lines
the fs module
reads and writes files
Yes: 2 files
e.g. tools/check-napi.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
napi-inl.h244 KB
napi.h126 KB
tools/conversion.js15 KB
package.json11 KB
napi-inl.deprecated.h6.3 KB
README.md5.0 KB
tools/README.md3.2 KB
tools/check-napi.js3.2 KB
tools/clang-format.js2.0 KB
LICENSE.md1.2 KB
node_addon_api.gyp1.1 KB
common.gypi833 B
noexcept.gypi649 B
except.gypi560 B
package-support.json467 B
index.js435 B
node_api.gyp132 B

Questions

How many files are in node-addon-api?

Version 8.9.2 of node-addon-api publishes 17 files of source, 420 KB in all, not counting images, fonts and source maps.

Does node-addon-api use eval?

No: node-addon-api doesn't call eval() anywhere in its published files.

Does node-addon-api start other programs?

Yes: node-addon-api uses child_process in 2 of its files.

Does node-addon-api run an install script?

No: node-addon-api 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