json2xlsxexport

1.2.5 • Public • Published

json2xlsxexport

Lightweight in browser .xlsx exporter.

How it use

import json2xlsx from 'json2xlsxexport';
 
let xlsx = {
  filename: 'AwesomeFile',
  sheets: [{
    name:"First sheet",
    data: [
      [{
        value: 'Line1',
        type'string'
      },{
        value: 'Line2',
        type'string'
      }, {
        value: 1000,
        type'number'
      }]
    ]
  },
  {
    name:"Second sheet",
    data: [
      [{
        value: 'First',
        type'string'
      },{
        value: 'Second',
        type'string'
      }]
    ]
  }]
};
 
json2xlsx(xlsx);

Readme

Keywords

Package Sidebar

Install

npm i json2xlsxexport

Weekly Downloads

0

Version

1.2.5

License

MIT

Unpacked Size

205 kB

Total Files

34

Last publish

Collaborators

  • bgrusnak