Commit 19a71f80 authored by Administrator's avatar Administrator

update

parent 14af61cd
# am-xlsx2json # am-xlsx2json
Converting xlsx file to json files using nodejs (js-xlsx) Converting xlsx file to json files using nodejs (am-xlsx2json)
## Install ## Install
...@@ -12,7 +12,7 @@ Converting xlsx file to json files using nodejs (js-xlsx) ...@@ -12,7 +12,7 @@ Converting xlsx file to json files using nodejs (js-xlsx)
## Usage ## Usage
```javascript ```javascript
am_xlsx2json = require("am-xlsx2json"); var am_xlsx2json = require("am-xlsx2json");
am_xlsx2json({ am_xlsx2json({
input: "sample.xlsx", // path of excel file / uploaded file input: "sample.xlsx", // path of excel file / uploaded file
output: "output.json" // if set it will write to file output: "output.json" // if set it will write to file
...@@ -30,11 +30,11 @@ Converting xlsx file to json files using nodejs (js-xlsx) ...@@ -30,11 +30,11 @@ Converting xlsx file to json files using nodejs (js-xlsx)
You can optionally provide a sheet name to extract from that sheet You can optionally provide a sheet name to extract from that sheet
```javascript ```javascript
am_xlsx2json = require("am-xlsx2json"); var am_xlsx2json = require("am-xlsx2json");
am_xlsx2json({ am_xlsx2json({
input: "sample.xlsx", // path of excel file / uploaded file input: "sample.xlsx", // path of excel file / uploaded file
output: "output.json" // if set it will write to file output: "output.json" // if set it will write to file
sheet: "tags" sheet: ["Sheet1","Sheet4"] //array of selected sheet
}, function(err, result) { }, function(err, result) {
if(err) { if(err) {
console.error(err); console.error(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment