JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 857
  • Score
    100M100P100Q100981F
  • License MIT

json to excel . base on node-xlsx

Package Exports

  • xls-write

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xls-write) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

json2excel

Quick start

Install

npm install xls-write

Example

const jexcel = require('./index');
const path = require('path');
const filename = Date.now() + '.xlsx';
var data = {
  sheets: [
    {
      header: [{ author: 'mapName' }, { title: 'maptitle' }],
      items: [
        {
          author: 'icezeros',
          title: 'how to use this',
        },
        {
          author: 'ice',
          title: 'so Easy',
        },
      ],
      sheetName: 'sheet1',
    },
  ],
  filepath: path.join(__dirname, filename),
};
//
jexcel.writeXlsx(data);