0.0.0 • Published 7 years ago

count-top-entries v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

count-top-entries

build status


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

MIT