Comparing version 0.3.3 to 0.3.4
@@ -11,3 +11,3 @@ //module interfaces | ||
"port":"8801", | ||
"urlPath":"/parseCSV" | ||
"urlpath":"/parseCSV" | ||
} | ||
@@ -33,6 +33,6 @@ var server=null; | ||
server.on("request",function(req,res){ | ||
if (req.url==serverArgs.urlPath && req.method =="POST"){ | ||
if (req.url==serverArgs.urlpath && req.method =="POST"){ | ||
_POSTData(req,res); | ||
}else{ | ||
res.end("Please post data to: "+serverArgs.urlPath); | ||
res.end("Please post data to: "+serverArgs.urlpath); | ||
} | ||
@@ -43,9 +43,9 @@ }); | ||
//expressApp.use(express.bodyParser()); | ||
// expressApp.post(serverArgs.urlPath,_POSTData); | ||
// expressApp.post(serverArgs.urlpath,_POSTData); | ||
// expressApp.get("/",function(req,res){ | ||
// res.end("POST to "+serverArgs.urlPath+" with CSV data to get parsed."); | ||
// res.end("POST to "+serverArgs.urlpath+" with CSV data to get parsed."); | ||
// }); | ||
// expressApp.listen(serverArgs.port); | ||
console.log("CSV Web Server Listen On:"+serverArgs.port); | ||
console.log("POST to "+serverArgs.urlPath+" with CSV data to get parsed."); | ||
console.log("POST to "+serverArgs.urlpath+" with CSV data to get parsed."); | ||
return server; | ||
@@ -52,0 +52,0 @@ } |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version":"0.3.3", | ||
"version":"0.3.4", | ||
"keywords":[ | ||
@@ -20,0 +20,0 @@ "csv", |
#CSV2JSON | ||
All you need nodejs csv to json converter. Support big json data, CLI, server. Easily convert your CSV data to nested JSON object. | ||
All you need nodejs csv to json converter. Support big json data, CLI, web server, nested JSON, customised parser, stream, pipe, and more! | ||
@@ -25,15 +25,4 @@ #IMPORTANT!! | ||
#Change Log | ||
##version 0.3.2 | ||
* Added quote in parameter to support quoted column content containing delimiters | ||
* Changed row index starting from 0 instead of 1 when populated from record_parsed event | ||
##version 0.3 | ||
* Removed all dependencies | ||
* Deprecated applyWebServer | ||
* Added construct parameter for Converter Class | ||
* Converter Class now works as a proper stream object | ||
##Menu | ||
@@ -55,2 +44,3 @@ * [Installation](#installation) | ||
* [Column Array](#column-array) | ||
* [Change Log](#change-log) | ||
@@ -76,3 +66,3 @@ GitHub: https://github.com/Keyang/node-csvtojson | ||
>csvtojson [ CSVFilePath | StartServer] [port] | ||
>csvtojson <csv file path> | ||
@@ -89,6 +79,8 @@ Example | ||
>csvtojson startserver [port] | ||
>csvtojson startserver [options] | ||
Default port number is 8801. | ||
Advanced usage with parameters support, check help: | ||
>csvtojson --help | ||
### WebService | ||
@@ -204,3 +196,3 @@ After webserve being initialised, it is able to use http post with CSV data as body. | ||
"port":"8801", | ||
"urlPath":"/parseCSV" | ||
"urlpath":"/parseCSV" | ||
}); | ||
@@ -378,1 +370,16 @@ ``` | ||
``` | ||
#Change Log | ||
##0.3.4 | ||
* Added more parameters to command line tool. | ||
##0.3.2 | ||
* Added quote in parameter to support quoted column content containing delimiters | ||
* Changed row index starting from 0 instead of 1 when populated from record_parsed event | ||
##0.3 | ||
* Removed all dependencies | ||
* Deprecated applyWebServer | ||
* Added construct parameter for Converter Class | ||
* Converter Class now works as a proper stream object |
Sorry, the diff of this file is not supported yet
36039
380