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": [