Skip to content

vadimdemedes/list-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

list-dir Circle CI

Simple function to list directory contents recursively (returns relative paths of files);

Installation

$ npm install list-dir --save

Usage

const list = require('list-dir');

// sync
let files = list.sync('/path/to/dir');


// promises
list('/path/to/dir').then(function (files) {
  // done
});


// generators
let files = yield list('/path/to/dir');

Tests

Circle CI

$ make test

License

MIT © Vadym Demedes