to-spreadsheet
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

to-spreadsheet

npm package to create spreadsheet in node environment and in browser

npm version minified minified + gzipped

GitHub stars GitHub watchers

NPM

npm i to-spreadsheet

Usage

Open in CodeSandbox

import { generateExcel , EnvironmentType, skipCell, writeEquation } from 'to-spreadsheet/lib/index';

const sampleData = [
  {
    title: 'Maifee1', content: [
      ['meaw', 'grrr'],
      ['woof', 'smack'],
      [1],
      [1, 2],
      [1, 2, 3, writeEquation('SUM(A5,C5)')],
    ]
  },
  { title: 'Maifee2', content: [[1], [1, skipCell(3), 2]] },
  { title: 'Maifee3', content: [['meaw', undefined, "meaw"], ["woof", 'woof']] }
]

generateExcel(sampleData); // <-- by default generate XLSX for node
generateExcel(sampleData, EnvironmentType.BROWSER); // <-- for browser

Features

  • [x] Multiple sheet support
  • [x] Equations
  • [ ] Cell styling
  • [ ] Sheet styling

Readme

Keywords

none

Package Sidebar

Install

npm i to-spreadsheet

Weekly Downloads

1

Version

1.1.5

License

MIT

Unpacked Size

43.7 kB

Total Files

29

Last publish

Collaborators

  • maifeeulasad