Socket
Socket
Sign inDemoInstall

sb-scandir

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

3.1.0

Diff

Changelog

Source

3.1.0

  • Add support for Node.js ESM loader
steelbrain
published 3.0.0 •

Changelog

Source

3.0.0

  • Add ESM module for bundlers
  • Add typings for Typescript
  • Add fileSystem option support
  • Add concurrency option support
  • When recursive is false, we now return the list of directories at last level
  • WARNING: Function call signature has been updated. Please look at README for more info.
// From:
scandir(__dirname, false)
// To:
scandir(__dirname, { recursive: false })

// From:
scandir(__dirname, false, path => {
  return false
})
// To:
scandir(__dirname, { concurrency: false, validate(path) {
  return false
}})
steelbrain
published 2.0.0 •

Changelog

Source

2.0.0

  • Change CJS export to ES Export
  • Return directories along with files
steelbrain
published 1.0.0 •

Changelog

Source

1.0.0

  • Initial release
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