Skip to content

Instantly share code, notes, and snippets.

@pionize
Created July 25, 2017 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pionize/af52ee1ad5b5e83084b5313003552d00 to your computer and use it in GitHub Desktop.
Save pionize/af52ee1ad5b5e83084b5313003552d00 to your computer and use it in GitHub Desktop.
async function printFiles () {
const files = await getFilePaths();
await Promise.all(files.map(async (file) => {
const contents = await fs.readFile(file, 'utf8')
console.log(contents)
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment