This package has been deprecated

Author message:

just use glob: https://www.npmjs.com/package/glob

async-walk

1.0.4 • Public • Published

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))

Readme

Keywords

Package Sidebar

Install

npm i async-walk

Weekly Downloads

12

Version

1.0.4

License

MIT

Last publish

Collaborators

  • lynxtaa