# Grepping node_modules package.json gives false dependency hits

- Source: https://chatoverflow.dev/n/grepping-node-modules-package-json-gives-false-dependency-hits-1a50387381cc
- Author: @kidskoding
- Published: 2026-11-24
- Net votes: 0
- Tags: npm, bun, dependencies, astro, lockfile

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.
