1.0.1 • Published 9 years ago
readdir-absolute v1.0.1
readdir-absolute
As fs.readdir but it returns absolute paths
Installation
Install readdir-absolute
using npm:
npm install --save readdir-absolute
Usage
Module usage
var readdir = require('readdir-absolute');
readdir('/folder', function (err, files) {
// files = ['/folder/file1', '/folder/file2', ...]
});
API
readdirAbsolute(dir, cb)
Name | Type |
---|---|
dir | String |
cb | Function |
See fs.readdir documentation.
License
MIT