1.1.7 • Published 3 years ago

@pubcore/dwnld-xlsx v1.1.7

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

Build Status

Download xlsx file

Install

npm install @pubcore/download-xlsx --save

usage

simple example:

import downloadXlsx from '@pubcore/download-xlsx'

downloadXlsx({
	cols: ['column1','column2','column3'].map(c => ({'name': c})),
	rows: [
		{column1:'value 1', column2: 'lorem ipsum dolor sit amet', column3: '4.23'},
		{column1:'value 2', column2: 'foo bar', column3: 0.23},
		{column1:'value 3', column2: 'foobar', column3: ''}
	],
	//default is 't' (text), https://github.com/SheetJS/js-xlsx#data-types
	types:{column3:'n'}, //(use number format for values in column3)
	filename: 'example.xlsx'
})

codepen example

https://codepen.io/pubcore/pen/XqazyV

1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago