🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

fs-tree-iterator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-tree-iterator

Recursive file tree nanoiterator

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

fs-tree-iterator

Basic recursive file tree nanoiterator.

npm install fs-tree-iterator

Usage

const tree = require('fs-tree-iterator')

const ite = tree('.')

ite.next(function loop (err, node) {
  if (err) throw err
  if (!node) return // done
  console.log('entry', node.path, node.stat)
  ite.next(loop)
})

License

MIT

FAQs

Package last updated on 03 Feb 2019

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