1.0.4 • Published 7 years ago

async-walk v1.0.4

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

async-walk

Crossplatform promise-based recursive walk within folder. Requires ES6 support.

Install

npm install async-walk --save

Syntax

require('async-walk')(path)
  • path <string> path to folder

Returns Promise which fulfills to array of absolute file paths.

Usage

const asyncWalk = require('async-walk')
asyncWalk('/some/folder')
  .then(paths => {
    console.log(paths)  // ["/some/folder/file1.txt", "/some/folder/file2.txt"...]
  })
  .catch(console.log.bind(console))
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago