json2xls-xml

Convert javascript objects to Excel (xml format)

Usage no npm install needed!

<script type="module">
  import json2xlsXml from 'https://cdn.skypack.dev/json2xls-xml';
</script>

README

json2xls-xml

Convert Javascript objects to XLS (XML format), based on json2officexml.

Installation

[~] ➔ npm install json2xls-xml

Usage

var j2xls = require('json2xls-xml')({ pretty : true });

var doc = {
    Foo : [
        { firstname : 'John', lastname: 'Doo'}
        , { firstname : 'Foo', lastname: 'Bar', age: 23, weight: 25.7876, birth : new Date()}
    ]
    , Bar : [
        { firstname : 'Rene', lastname: 'Malin'}
        , { firstname : 'Foo', lastname: 'foobar', age: 73, weight: 22225.33, birth : new Date()}
    ]
};

console.log(j2xls(doc));