New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

async-walk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-walk

Promise-based recursive walk within folder

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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

Keywords

walk

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts