Home / npm packages / eslint-plugin-n

eslint-plugin-n source code

Every file of eslint-plugin-n@18.4.1 as published on npm: 152 files, 543 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, process.env, the fs module, crypto.

What eslint-plugin-n uses

APIIn eslint-plugin-n
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: 4 files
e.g. lib/unsupported-features/node-builtins-modules/child_process.js
See the lines
process.env
reads environment variables
Yes: 2 files
e.g. lib/rules/no-process-env.js
See the lines
the fs module
reads and writes files
Yes: 8 files
e.g. lib/util/exists.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: 2 files
e.g. lib/rules/prefer-global/crypto.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
lib/types-code-path-analysis/code-path-state.d.ts34 KB
lib/rules/no-deprecated-api.js26 KB
lib/rules/no-unsupported-features/es-builtins.js20 KB
README.md18 KB
lib/rules/no-unsupported-features/es-syntax.json15 KB
lib/unsupported-features/node-builtins-modules/test.js14 KB
lib/rules/exports-style.js14 KB
lib/util/import-target.js12 KB
lib/unsupported-features/node-globals.js11 KB
lib/util/get-npmignore.js10 KB
lib/rules/no-path-concat.js9.6 KB
lib/unsupported-features/node-builtins-modules/fs.js9.3 KB
lib/unsupported-features/node-builtins-modules/zlib.js9.2 KB
lib/rules/file-extension-in-import.js9.2 KB
lib/rules/hashbang.js8.4 KB
lib/rules/no-mixed-requires.js8.1 KB
lib/rules/no-sync.js8.0 KB
lib/util/check-extraneous.js8.0 KB
lib/rules/no-unsupported-features/es-syntax.js7.9 KB
lib/unsupported-features/node-builtins-modules/process.js7.8 KB
lib/unsupported-features/node-builtins-modules/util.js7.4 KB
lib/unsupported-features/node-builtins-modules/crypto.js6.6 KB
lib/rules/callback-return.js6.6 KB
lib/rules/prefer-node-protocol.js6.2 KB
lib/util/check-unsupported-builtins.js6.1 KB
lib/types-code-path-analysis/fork-context.d.ts6.0 KB
lib/util/get-convert-path.js5.8 KB
lib/util/get-typescript-extension-map.js5.3 KB
lib/all-rules.js5.3 KB
lib/rules/process-exit-as-throw.js5.3 KB

Questions

How many files are in eslint-plugin-n?

Version 18.4.1 of eslint-plugin-n publishes 152 files of source, 543 KB in all, not counting images, fonts and source maps.

Does eslint-plugin-n use eval?

No: eslint-plugin-n doesn't call eval() anywhere in its published files.

Does eslint-plugin-n start other programs?

Yes: eslint-plugin-n uses child_process in 4 of its files.

Does eslint-plugin-n run an install script?

No: eslint-plugin-n 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