Fetches the list of modules and their installed versions loaded by the entry file of a Node.js application. Version 1.0.0 is the latest stable release; the package appears stable with no active development. It is a lightweight utility that provides the actual installed version of each module, not the dependency version string. Different from other module listing tools by focusing on the root project's dependencies with minimal API.
npm install lsmodNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to call lsmod() to get an object mapping module names to their installed versions.
Ensure all desired modules are imported/required in the main entry file before calling lsmod().
Use the returned version for exact version detection; do not expect range strings.
Consider alternatives like require('module')._resolveFilename or using require.cache.Use require('lsmod') instead of import.Run 'npm install lsmod' in the project root.
No dependency data recorded yet.