@johngw/fs
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

@johngw/fs

File System Utilities

`readFiles(dirname: string, { recursive?: boolean, filter?: (name: string) => boolean, encoding?: BufferEncoding }): AsyncGenerator<Buffer | string, void>

Recursively read all files in a directory.

for await (const fileContent of readFiles(__dirname, { encoding: 'utf-8' })) {
  // ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i @johngw/fs

Weekly Downloads

384

Version

3.0.1

License

MIT

Unpacked Size

14.5 kB

Total Files

25

Last publish

Collaborators

  • johngeorgewright