0.0.0 • Published 7 years ago
count-top-entries v0.0.0
count-top-entries
Count the number of top-level entries (dirs and files) within a directory.
Get it
npm install --save count-top-entries
Usage
var count = require('count-top-entries')
count('.', {/*...*/}, function (err, data) {
if (err) return console.error(err)
console.log(data) // -> { dirs: x, files: y }
})
Only accepts a single option:
{
dereference: false // default
}
To follow symlinks set opts.dereference
to true
.
License
0.0.0
7 years ago