Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

xlsx to json javascript

const xlsx = require('xlsx');

const xlsxToJson = (filePath, sheetName) => {
  const workbook = xlsx.readFile(filePath);
  const sheet = workbook.Sheets[sheetName];
  return xlsx.utils.sheet_to_json(sheet);
};

const jsonSheet = xlsxToJson('./test.xlsx', 'Sheet1');
Comment

PREVIOUS NEXT
Code Example
Javascript :: text field material ui max input for number 
Javascript :: adding document to firebase firestore 
Javascript :: sleeping in js 
Javascript :: app.use 
Javascript :: preventdefault not working react 
Javascript :: regex to check if text is in quotations 
Javascript :: stripe react js 
Javascript :: node mysql 
Javascript :: Not allowed to navigate top frame to data URL 
Javascript :: unary operator javascript 
Javascript :: ajax syntax in javascript 
Javascript :: using dto in express 
Javascript :: express req body undefined 
Javascript :: json array 
Javascript :: download jquery 
Javascript :: print json shopify 
Javascript :: javascript array move element 
Javascript :: this.props.history.location.push 
Javascript :: how to autoload config files added in composer.json laravel 
Javascript :: smooth scroll mouse wheel javascript 
Javascript :: hmget in redis 
Javascript :: clear html element javascript 
Javascript :: javascript kill ajax request 
Javascript :: rating star jquery 
Javascript :: javascript split sentence into words 
Javascript :: react native textinput no keyboard 
Javascript :: bootstrap time picker 12 hour format 
Javascript :: jquery insert after next element 
Javascript :: javascript open pdf in new tab 
Javascript :: array push method 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =