lsmod ![Build Status](https://camo.githubusercontent.com/a44e045ab1c81ee88f7b6fbb2e3c0c9ac63a67fa0198199c85e842d1dbd74469/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f646566756e63747a6f6d6269652f6e6f64652d6c736d6f642e706e673f6272616e63683d6d6173746572)
lsmod fetches the list of modules and the versions loaded by the entry file for your node.js app.
use
var lsmod = require('lsmod');
// get an object with module version information
var modules = lsmod();
// modules is an object `key:version`
{
express: '3.0.5',
hbs: '2.0.1'
}
Note that the version is the actual installed version and not the dependency version string.
install via npm
npm install lsmod