folder-reader
Recursively stream a directory of files.
About
Recursively read all files/directories in a set of directories.
Creates a stream that outputs objects with file content and metadata.
Example item in the stream:
basename: 'index.js' relname: 'tests/index.js' root: '/Users/sdv/workspace/sethvincent/folder-reader' filepath: '/Users/sdv/workspace/sethvincent/folder-reader/tests/index.js' stat: fsStat Object type: 'file' // or 'directory', file: '' // the contents of the file
Based on the folder-walker module.
Install
npm install --save folder-reader
Usage
var path = var reader = var dir = path
Using alternate fs implementations
You can use this module with alternate fs implementations like hyperdrive by passing the alternate fs
as an option:
var reader = var hyperdrive = var drive =
See a more detailed example of using this module with hyperdrive.
Documentation
Examples
Contributing
Contributions are welcome! Please read the contributing guidelines first.
Conduct
It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct
Changelog
Read about the changes to this project in CHANGELOG.md. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Contact
- issues – Please open issues in the issues queue
- email – Need in-depth support via paid contract? Send an email to sethvincent@gmail.com