tree: aca79f7b6c9d8012d69861ad74b5a0c821ec5db7 [path history] [tgz]
  1. node_modules/
  2. test/
  3. .npmignore
  4. index.js
  5. LICENSE
  6. package.json
  7. README.md
node_modules/dependency-ls/README.md

dependency-ls

This module returns a promise containing an object of top level node modules installed in the supplied path.

This module is essentially a fork of https://www.npmjs.com/package/npmlist. I just needed the results in a json object and I wanted the module to be requireable.

USAGE

npm instal dependency-ls --save

var dep-ls = require('dependency-ls')
return depls(process.cwd())
.then(function(result) {
    console.log(result)
}