1.0.1 • Published 9 years ago

readdir-absolute v1.0.1

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

readdir-absolute

NPM version

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)

NameType
dirString
cbFunction

See fs.readdir documentation.

License

MIT