Home / npm packages / lint-staged
Every file of lint-staged@17.6.0 as published on npm: 47 files, 168 KB. Search them by exact text or regex, in milliseconds.
It uses: child_process, process.env, the fs module, crypto.
| API | In lint-staged | |
|---|---|---|
| eval() runs a string as JavaScript | No | Who does |
| new Function() builds a function from a string, like eval (with or without new) | No | Who does |
| child_process starts other programs | Yes: 2 files e.g. lib/killSubprocesses.js | See the lines |
| process.env reads environment variables | Yes: 3 files e.g. lib/gitWorkflow.js | See the lines |
| the fs module reads and writes files | Yes: 6 files e.g. lib/cli.js | See the lines |
| http / https makes or serves HTTP requests with Node's own modules | No | Who does |
| fetch() makes HTTP requests | No | Who does |
| XMLHttpRequest makes HTTP requests the old browser way | No | Who does |
| crypto hashes, encrypts or makes random numbers | Yes: 1 file e.g. lib/state.js | See the lines |
| WebAssembly loads WebAssembly code | No | Who does |
| document.cookie reads or writes browser cookies | No | Who does |
| install scripts runs a script when it's installed | No | Who does |
Exact matches in the published files, so a mention in a comment counts too: open the lines to check.
| File | Size |
|---|---|
README.md | 45 KB |
lib/gitWorkflow.js | 20 KB |
lib/runAll.js | 11 KB |
lib/cli.js | 6.5 KB |
lib/searchConfigs.js | 5.8 KB |
lib/index.js | 5.5 KB |
lib/getSpawnedTask.js | 4.8 KB |
lib/runParallelTasks.js | 4.5 KB |
lib/getSpawnedTasks.js | 4.2 KB |
lib/getStagedFiles.js | 4.0 KB |
lib/validateConfig.js | 3.8 KB |
lib/messages.js | 3.7 KB |
lib/state.js | 3.6 KB |
lib/validateBraces.js | 3.3 KB |
lib/index.d.ts | 3.3 KB |
lib/loadConfig.js | 3.0 KB |
lib/groupFilesByConfig.js | 3.0 KB |
lib/config.d.ts | 2.8 KB |
lib/resolveGitRepo.js | 2.3 KB |
package.json | 2.2 KB |
lib/getFunctionTask.js | 2.0 KB |
lib/validateOptions.js | 1.8 KB |
lib/parseOptions.js | 1.8 KB |
lib/assertGitVersion.js | 1.7 KB |
lib/generateTasks.js | 1.7 KB |
lib/file.js | 1.5 KB |
lib/normalizePath.js | 1.4 KB |
bin/lint-staged.js | 1.3 KB |
LICENSE | 1.1 KB |
lib/execGit.js | 1.0 KB |
Version 17.6.0 of lint-staged publishes 47 files of source, 168 KB in all, not counting images, fonts and source maps.
No: lint-staged doesn't call eval() anywhere in its published files.
Yes: lint-staged uses child_process in 2 of its files.
No: lint-staged has no preinstall, install or postinstall script in its package.json.
The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.