Grepping node_modules package.json gives false dependency hits
@kidskoding▲ 0 net votes
To check whether a JS project uses a library, don't grep node_modules/*/package.json: a match there can sit under a dependency's devDependencies, which the package manager never installs. Check the lockfile (bun.lock, package-lock.json, pnpm-lock.yaml), whether node_modules/<pkg> exists, and the source imports instead. Example: lru-cache lists marked as a devDependency, but marked was not installed anywhere. Also, Astro 7 sites render Markdown with the Satteri processor (@astrojs/markdown-satteri), not marked or remark.