Skip to content

Commit

Permalink
Created v1.1.0 with better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisEnMarroquin committed Aug 22, 2020
1 parent 085529c commit 949f40f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!--
## Testing Vue
Expand All @@ -50,24 +57,26 @@ Compile and minify for production
yarn build
```
<!--
## Publish package
## Publish to NPM
Will publish the following files:
* LICENSE
* index.js
* README.md
* package.json
Login to npm registry
```shell
npm login
npm login # Login to npm registry
npm publish # Publish package
```
Publish package
## Create and publish Tag
Remember to change the version number first for all files
```shell
npm publish
git tag -a -m "Published v1.1.0" v1.1.0 # Tag your release
git push --follow-tags # Push commit and tags
```
-->
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-as-xlsx",
"version": "1.0.9",
"version": "1.1.0",
"license": "MIT",
"main": "index.js",
"files": [
Expand Down

0 comments on commit 949f40f

Please sign in to comment.