Home / npm packages / nan

nan source code

Every file of nan@2.29.0 as published on npm: 50 files, 459 KB. Search them by exact text or regex, in milliseconds.

It uses: the fs module.

What nan uses

APIIn nan
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
NoWho does
the fs module
reads and writes files
Yes: 1 file
e.g. tools/1to2.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
nan.h98 KB
doc/methods.md29 KB
README.md29 KB
nan_callbacks_12_inl.h28 KB
CHANGELOG.md24 KB
doc/maybe_types.md22 KB
nan_callbacks_pre_12_inl.h17 KB
nan_weak.h16 KB
nan_implementation_12_inl.h16 KB
tools/1to2.js14 KB
nan_maybe_43_inl.h13 KB
doc/persistent.md11 KB
nan_new.h8.8 KB
doc/object_wrappers.md8.2 KB
nan_string_bytes.h8.1 KB
nan_implementation_pre_12_inl.h7.9 KB
doc/v8_internals.md7.9 KB
doc/errors.md7.4 KB
nan_maybe_pre_43_inl.h7.2 KB
nan_persistent_pre_12_inl.h6.2 KB
nan_json.h5.8 KB
doc/node_misc.md5.7 KB
doc/asyncworker.md5.3 KB
nan_callbacks.h5.0 KB
doc/new.md4.9 KB
CMakeLists.txt4.2 KB
nan_object_wrap.h4.1 KB
nan_scriptorigin.h4.1 KB
nan_persistent_12_inl.h3.9 KB
nan_typedarray_contents.h3.1 KB

Questions

How many files are in nan?

Version 2.29.0 of nan publishes 50 files of source, 459 KB in all, not counting images, fonts and source maps.

Does nan use eval?

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

Does nan start other programs?

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

Does nan run an install script?

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