0.0.0 • Published 6 years ago
f-d-wishlist v0.0.0
f-d-wishlist
Get a list of top-level files and directories within some parent directory. Optionally get full paths instantly.
Get it!
npm install f-d-wishlist
Usage
wishlist(dir[, opts], callback)
Options default to:
{
full: false, // get full paths?
dereference: false // follow symlinks?
}
Callback has signature callback(err, list)
. The list is an object, see below.
var wishlist = require('f-d-wishlist')
wishlist('.', function (err, list) {
if (err) return console.error(err)
console.log(list) // -> { dirs: [/*...*/], files: [/*.*/] }
})
License
0.0.0
6 years ago