Socket
Socket
Sign inDemoInstall

fs-readdir-recursive

Package Overview
Dependencies
0
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-readdir-recursive

Recursively read a directory


Version published
Maintainers
6
Weekly downloads
3,063,341
decreased by-10.62%

Weekly downloads

Readme

Source

fs.readdirSyncRecursive

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Read a directory recursively.

Install

npm install fs-readdir-recursive

Example

var read = require('fs-readdir-recursive')
read(__dirname) === [
  'test/test.js',
  'index.js',
  'LICENSE',
  'package.json',
  'README.md'
]

API

read(root [, filter])

root is the directory you wish to scan. filter is an optional filter for the files with three params(name, index, dir). By default, filter is:

function (name) {
  return name[0] !== '.'
}

Which basically just ignores . files.

FAQs

Last updated on 10 Nov 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc