find-installed-packages
Find the installed packages that declare your keywords, whatever installed them.
find-installed-packages answers one question: which installed packages declare these keywords in
their package.json?
import { findByKeywords } from 'find-installed-packages'
const packages = await findByKeywords(['some-keyword']) // ['pkg-a', 'pkg-b']It finds them by walking the declared dependency graph and asking the runtime’s module resolver where each package lives, so the answer is the same under npm, yarn, bun, pnpm, workspaces, and Yarn Plug’n’Play.
IntroductionWhat it does, and why scanning node_modules is not enough.
InstallationInstall the package and check the runtime requirements.
How packages are foundThe dependency walk, the fallback scan, and what each one reports.
CacheWhere results are cached and what invalidates them.