An open API service indexing awesome lists of open source software.

https://github.com/nexys-system/tabular-excel


https://github.com/nexys-system/tabular-excel

excel excel-export typescript

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Excel Tabular Generator

[![npm version](https://badge.fury.io/js/%40nexys%2Ftabular.svg)](https://www.npmjs.com/package/@nexys/tabular)
[![npm version](https://img.shields.io/npm/v/@nexys/tabular.svg)](https://www.npmjs.com/package/@nexys/tabular)
[![CircleCI](https://circleci.com/gh/Nexysweb/tabular-excel.svg?style=svg)](https://circleci.com/gh/Nexysweb/tabular-excel)
[![TavisCI](https://travis-ci.com/Nexysweb/tabular-excel.svg?branch=master)](https://travis-ci.com/Nexysweb/tabular-excel)
![Deployment](https://github.com/Nexysweb/tabular-excel/workflows/Deployment/badge.svg)
![Publish](https://github.com/Nexysweb/tabular-excel/workflows/Publish/badge.svg)

- [see GH](https://github.com/nexysweb/tabular-excel)
- [see website](https://nexysweb.github.io/tabular-excel)

Turn `JSON` lists into Excel files (.xlsx)

## Multi pages

if the input is an object: keys are worksheet names and values are the array needed to create the content of the worksheet

## Styling cells

Instead of having a string with the content of a cell, use `{content: 'cell content', style}`. `style` is an object containing the style of the cell.

Documentation can be found here: [Style documentation of Excel 4 Nodes](https://www.npmjs.com/package/excel4node#styles)

# Lines to row

Sometimes structured data are newline delimited, see example below:

```
firstName1
lastName1
email1
firstName2
lastName2
email2
```

We define the following attributes: `firstName` `lastName` and `email1`

Lines to row then turns the above into

```
[
{firstName: 'firstName1', lastName: 'lastName1', email: 'email1'},
{firstName: 'firstName2', lastName: 'lastName2', email: 'email2'}
]
```

# SRT to VTT

Easily convert SRT files to VTT

## Resources

- https://medium.com/@Nopziiemoo/create-excel-files-using-javascript-without-all-the-fuss-2c4aa5377813
https://shinglyu.com/web/2019/02/09/js_download_as_file.html
https://www.name-generator.org.uk/quick/