readdir-absolute

1.0.1 • Public • Published

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)

Name Type
dir String
cb Function

See fs.readdir documentation.

License

MIT

Package Sidebar

Install

npm i readdir-absolute

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • joakimbeng