Skip to content

Instantly share code, notes, and snippets.

const fs = require('fs');
function getKeysFromFile(filename) {
const file = fs.readFileSync(filename, 'utf-8');
const rows = file.split('\n');
return getKeysFromRows(rows);
}
function getKeysFromRows(rows) {
let keys = [];