From 949f40fcfecc980d111d3c9eee2e4b8445df73bb Mon Sep 17 00:00:00 2001 From: LuisEnMarroquin Date: Sat, 22 Aug 2020 16:39:57 -0500 Subject: [PATCH] Created v1.1.0 with better documentation --- README.md | 29 +++++++++++++++++++---------- package.json | 2 +- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 12ce0a4..9c6b7fe 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,20 @@ var content = [ var settings = { sheetName: 'First sheet', fileName: 'Users', - extraLength: 3 + extraLength: 3 // Expands the sizes of the columns } -xlsx(columns, content, settings) // Will download the excel file +var download = true // If true will download the xlsx file, otherwise will return a buffer + +xlsx(columns, content, settings, download) // Will download the excel file ``` -You can also see it being used with Vue 3 [here](https://github.com/LuisEnMarroquin/json-as-xlsx/blob/master/src/App.vue) +## Examples + +* Frontend with [Vue here](https://github.com/LuisEnMarroquin/json-as-xlsx/blob/master/src/App.vue) +* Backend with [Express here](https://github.com/LuisEnMarroquin/json-as-xlsx/blob/master/server.js) + + diff --git a/package.json b/package.json index ca55d2b..602f3d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-as-xlsx", - "version": "1.0.9", + "version": "1.1.0", "license": "MIT", "main": "index.js", "files": [