1.2.2 • Published 8 years ago

json2xlsx-export v1.2.2

Weekly downloads
238
License
MIT
Repository
github
Last release
8 years ago

json2xlsx-export

Lightweight in browser .xlsx exporter.

How it use since v1.2.0

import json2xlsx from 'json2xlsx-export';

const config = {
  filename: 'AwesomeFile',
  sheets: [
    {
      name: 'Sheet1',
      data: [
        [{
          value: 'Text1',
          type: 'string'
        },{
          value: 'Text2',
          type: 'string'
        }, {
          value: 1000,
          type: 'number'
        }]
      ]
    },
    {
      name: 'Sheet2',
      data: [
        [{
          value: 'New text1',
          type: 'string'
        },{
          value: 'New text2',
          type: 'string'
        }, {
          value: 2000,
          type: 'number'
        }]
      ]
    }
  ]
};

json2xlsx(config);

How it use in earlier versions

import json2xlsx from 'json2xlsx-export';

const config = {
  filename: 'AwesomeFile',
  sheet: {
    data: [
      [{
        value: 'Text',
        type: 'string'
      },{
        value: 'Another text',
        type: 'string'
      }, {
        value: 1000,
        type: 'number'
      }]
    ]
  }
};

json2xlsx(config);
1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago