1

Hi I am looking for a way to export JSON data to XLS file.I need to support IE9. I found the js-xlsx library, but it exports in xlsx format.Is there anyother way to export , I need to support multiple worksheets also. Thanks

1 Answer 1

1

Try it with json2xls like this:

var json2xls = require('json2xls');
var json = {
    foo: 'bar',
    qux: 'moo',
    poo: 123,
    stux: new Date()
}

var xls = json2xls(json);

fs.writeFileSync('data.xlsx', xls, 'binary');

https://www.npmjs.com/package/json2xls

Sign up to request clarification or add additional context in comments.

1 Comment

Hi , I am not using node in my project. I was kind of lookinf for more independent library

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.