Skip to content

Instantly share code, notes, and snippets.

@UltiRequiem
Created August 2, 2022 15:08
Show Gist options
  • Save UltiRequiem/feb7026067e663ba17a99c8e1ce74104 to your computer and use it in GitHub Desktop.
Save UltiRequiem/feb7026067e663ba17a99c8e1ce74104 to your computer and use it in GitHub Desktop.
const fs = require('fs');
const readFileLines = filename =>
fs
.readFileSync(filename)
.toString('UTF8')
.split('\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment