dir-contents
v0.0.1
Published
read the contents of all files in a directory
Downloads
3
Readme
file-reader
Read all the files in a directory.
import { read } from 'file-reader';
read('some/directory').then(files => {
files.map(file => {
// { name: 'file.txt', content: '...' }
console.log(`file "${file.name}" contains "${file.content}"`);
});
});