Skip to content

Instantly share code, notes, and snippets.

View brianpooe's full-sized avatar
😎
Working from home

Brian Pooe brianpooe

😎
Working from home
View GitHub Profile
const xlsx = require('xlsx');
const filePath = process.argv.slice(2)[0];
const workbook = xlsx.readFile(filePath);
const worksheet = workbook.Sheets[workbook.SheetNames[0]];
let posts = [];
let post = {};
for (let cell in worksheet) {