1.1.1 • Published 7 years ago

dependency-ls v1.1.1

Weekly downloads
9,789
License
Apache V2
Repository
github
Last release
7 years ago

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 depls = require('dependency-ls')
return depls(process.cwd())
.then(function(result) {
    console.log(result)
}