New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

convert-json

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-json - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

sample/sample.tsv

18

libs/index.js

@@ -6,2 +6,3 @@ var fs = require('fs');

var xml_json = require('xml-to-json');
var tsv_json = require('node-tsv-json');

@@ -27,2 +28,5 @@

break;
case 'tsv':
return this.cvTSV(config, callback);
break;
case 'xls':

@@ -59,2 +63,16 @@ return this.cvXLS(config, callback);

CV.prototype.cvTSV = function(config, callback) {
tsv_json({
input: config.input,
output: config.output
}, function(err, result){
if(err) {
callback(err)
}else {
callback(null, result)
}
});
}
CV.prototype.cvXLS = function(config, callback) {

@@ -61,0 +79,0 @@ xls_json({

5

package.json
{
"name": "convert-json",
"version": "0.1.2",
"version": "0.2.0",
"description": "auto detect file type and convert it to json format",

@@ -30,3 +30,4 @@ "main": "index.js",

"node-csv-json": "0.1.1",
"xml-to-json": "0.1.0"
"xml-to-json": "0.1.0",
"node-tsv-json": "~0.1.0"
},

@@ -33,0 +34,0 @@ "devDependencies": {

1

README.md

@@ -13,2 +13,3 @@ # Convert JSON

- xml
- tsv

@@ -15,0 +16,0 @@ ## Install

@@ -1,1 +0,1 @@

[{"":"","Format":"0","Valuie":"12345.6789","B Fmt":"General","VBA Fmt":"","Fmt":"","Macro":""},{"":"","Format":"1","Valuie":"12346","B Fmt":"0","VBA Fmt":"12346","Fmt":"0","Macro":"12346"},{"":"","Format":"2","Valuie":"12345.68","B Fmt":"0.00","VBA Fmt":"12345.68","Fmt":"0.00","Macro":"12345.68"},{"":"","Format":"3","Valuie":"12","B Fmt":"346","VBA Fmt":"#","Fmt":"##0","Macro":"12"},{"":"","Format":"4","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00","Macro":"12"},{"":"","Format":"9","Valuie":"1234568%","B Fmt":"0%","VBA Fmt":"1234568%","Fmt":"0%","Macro":"1234568%"},{"":"","Format":"10","Valuie":"1234567.89%","B Fmt":"0.00%","VBA Fmt":"1234567.89%","Fmt":"0.00%","Macro":"1234567.89%"},{"":"","Format":"11","Valuie":"1.23E+04","B Fmt":"0.00E+00","VBA Fmt":"1.23E+04","Fmt":"0.00E+00","Macro":"1.23E+04"},{"":"","Format":"12","Valuie":"12345 2/3","B Fmt":"# ?/?","VBA Fmt":"12346 ?/?","Fmt":"# ?/?","Macro":"12345 2/3"},{"":"","Format":"13","Valuie":"12345 55/81","B Fmt":"# ??/??","VBA Fmt":"12346 ??/??","Fmt":"# ??/??","Macro":"12345 55/81"},{"":"* What is this supposed to be?","Format":"14","Valuie":"10/18/33","B Fmt":"m/d/yy","VBA Fmt":"10/18/33","Fmt":"m/d/yy","Macro":"10/18/33"},{"":"","Format":"15","Valuie":"18-Oct-33","B Fmt":"d-mmm-yy","VBA Fmt":"18-Oct-33","Fmt":"d-mmm-yy","Macro":"18-Oct-33"},{"":"","Format":"16","Valuie":"18-Oct","B Fmt":"d-mmm","VBA Fmt":"18-Oct","Fmt":"d-mmm","Macro":"18-Oct"},{"":"","Format":"17","Valuie":"Oct-33","B Fmt":"mmm-yy","VBA Fmt":"Oct-33","Fmt":"mmm-yy","Macro":"Oct-33"},{"":"","Format":"18","Valuie":"4:17 PM","B Fmt":"h:mm AM/PM","VBA Fmt":"4:17 PM","Fmt":"h:mm AM/PM","Macro":"4:17 PM"},{"":"","Format":"19","Valuie":"4:17:37 PM","B Fmt":"h:mm:ss AM/PM","VBA Fmt":"4:17:37 PM","Fmt":"h:mm:ss AM/PM","Macro":"4:17:37 PM"},{"":"","Format":"20","Valuie":"16:17","B Fmt":"h:mm","VBA Fmt":"16:17","Fmt":"h:mm","Macro":"16:17"},{"":"","Format":"21","Valuie":"16:17:37","B Fmt":"h:mm:ss","VBA Fmt":"16:17:37","Fmt":"h:mm:ss","Macro":"16:17:37"},{"":"","Format":"22","Valuie":"10/18/33 16:17","B Fmt":"m/d/yy h:mm","VBA Fmt":"10/18/33 16:17","Fmt":"m/d/yy h:mm","Macro":"10/18/33 16:17"},{"":"","Format":"37","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;(#","Macro":"##0)"},{"":"","Format":"38","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;[Red](#","Macro":"##0)"},{"":"","Format":"39","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;(#","Macro":"##0.00)"},{"":"","Format":"40","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;[Red](#","Macro":"##0.00)"},{"":"","Format":"45","Valuie":"17:37","B Fmt":"mm:ss","VBA Fmt":"10:37","Fmt":"mm:ss","Macro":"17:37"},{"":"","Format":"46","Valuie":"296296:17:37","B Fmt":"[h]:mm:ss","VBA Fmt":":10:37","Fmt":"[h]:mm:ss","Macro":"296296:17:37"},{"":"","Format":"47","Valuie":"1737.0","B Fmt":"mmss.0","VBA Fmt":"1037.0","Fmt":"mmss.0","Macro":"1737.0"},{"":"","Format":"48","Valuie":"12.3E+3","B Fmt":"##0.0E+0","VBA Fmt":"123.5E+2","Fmt":"##0.0E+0","Macro":"12.3E+3"},{"":"","Format":"49","Valuie":"12345.6789","B Fmt":"@","VBA Fmt":"12345.6789","Fmt":"@","Macro":"12345.6789"},{"":"","Format":"0","Valuie":"12345.6789","B Fmt":"General","VBA Fmt":"","Fmt":"","Macro":""},{"":"","Format":"1","Valuie":"12346","B Fmt":"0","VBA Fmt":"12346","Fmt":"0","Macro":"12346"},{"":"","Format":"2","Valuie":"12345.68","B Fmt":"0.00","VBA Fmt":"12345.68","Fmt":"0.00","Macro":"12345.68"},{"":"","Format":"3","Valuie":"12","B Fmt":"346","VBA Fmt":"#","Fmt":"##0","Macro":"12"},{"":"","Format":"4","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00","Macro":"12"},{"":"","Format":"9","Valuie":"1234568%","B Fmt":"0%","VBA Fmt":"1234568%","Fmt":"0%","Macro":"1234568%"},{"":"","Format":"10","Valuie":"1234567.89%","B Fmt":"0.00%","VBA Fmt":"1234567.89%","Fmt":"0.00%","Macro":"1234567.89%"},{"":"","Format":"11","Valuie":"1.23E+04","B Fmt":"0.00E+00","VBA Fmt":"1.23E+04","Fmt":"0.00E+00","Macro":"1.23E+04"},{"":"","Format":"12","Valuie":"12345 2/3","B Fmt":"# ?/?","VBA Fmt":"12346 ?/?","Fmt":"# ?/?","Macro":"12345 2/3"},{"":"","Format":"13","Valuie":"12345 55/81","B Fmt":"# ??/??","VBA Fmt":"12346 ??/??","Fmt":"# ??/??","Macro":"12345 55/81"},{"":"* What is this supposed to be?","Format":"14","Valuie":"10/18/33","B Fmt":"m/d/yy","VBA Fmt":"10/18/33","Fmt":"m/d/yy","Macro":"10/18/33"},{"":"","Format":"15","Valuie":"18-Oct-33","B Fmt":"d-mmm-yy","VBA Fmt":"18-Oct-33","Fmt":"d-mmm-yy","Macro":"18-Oct-33"},{"":"","Format":"16","Valuie":"18-Oct","B Fmt":"d-mmm","VBA Fmt":"18-Oct","Fmt":"d-mmm","Macro":"18-Oct"},{"":"","Format":"17","Valuie":"Oct-33","B Fmt":"mmm-yy","VBA Fmt":"Oct-33","Fmt":"mmm-yy","Macro":"Oct-33"},{"":"","Format":"18","Valuie":"4:17 PM","B Fmt":"h:mm AM/PM","VBA Fmt":"4:17 PM","Fmt":"h:mm AM/PM","Macro":"4:17 PM"},{"":"","Format":"19","Valuie":"4:17:37 PM","B Fmt":"h:mm:ss AM/PM","VBA Fmt":"4:17:37 PM","Fmt":"h:mm:ss AM/PM","Macro":"4:17:37 PM"},{"":"","Format":"20","Valuie":"16:17","B Fmt":"h:mm","VBA Fmt":"16:17","Fmt":"h:mm","Macro":"16:17"},{"":"","Format":"21","Valuie":"16:17:37","B Fmt":"h:mm:ss","VBA Fmt":"16:17:37","Fmt":"h:mm:ss","Macro":"16:17:37"},{"":"","Format":"22","Valuie":"10/18/33 16:17","B Fmt":"m/d/yy h:mm","VBA Fmt":"10/18/33 16:17","Fmt":"m/d/yy h:mm","Macro":"10/18/33 16:17"},{"":"","Format":"37","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;(#","Macro":"##0)"},{"":"","Format":"38","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;[Red](#","Macro":"##0)"},{"":"","Format":"39","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;(#","Macro":"##0.00)"},{"":"","Format":"40","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;[Red](#","Macro":"##0.00)"},{"":"","Format":"45","Valuie":"17:37","B Fmt":"mm:ss","VBA Fmt":"10:37","Fmt":"mm:ss","Macro":"17:37"},{"":"","Format":"46","Valuie":"296296:17:37","B Fmt":"[h]:mm:ss","VBA Fmt":":10:37","Fmt":"[h]:mm:ss","Macro":"296296:17:37"},{"":"","Format":"47","Valuie":"1737.0","B Fmt":"mmss.0","VBA Fmt":"1037.0","Fmt":"mmss.0","Macro":"1737.0"},{"":"","Format":"48","Valuie":"12.3E+3","B Fmt":"##0.0E+0","VBA Fmt":"123.5E+2","Fmt":"##0.0E+0","Macro":"12.3E+3"},{"":"","Format":"49","Valuie":"12345.6789","B Fmt":"@","VBA Fmt":"12345.6789","Fmt":"@","Macro":"12345.6789"}]
[{"":"","Format":"0","Valuie":"12345.6789","B Fmt":"General","VBA Fmt":"","Fmt":"","Macro":""},{"":"","Format":"1","Valuie":"12346","B Fmt":"0","VBA Fmt":"12346","Fmt":"0","Macro":"12346"},{"":"","Format":"2","Valuie":"12345.68","B Fmt":"0.00","VBA Fmt":"12345.68","Fmt":"0.00","Macro":"12345.68"},{"":"","Format":"3","Valuie":"12","B Fmt":"346","VBA Fmt":"#","Fmt":"##0","Macro":"12"},{"":"","Format":"4","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00","Macro":"12"},{"":"","Format":"9","Valuie":"1234568%","B Fmt":"0%","VBA Fmt":"1234568%","Fmt":"0%","Macro":"1234568%"},{"":"","Format":"10","Valuie":"1234567.89%","B Fmt":"0.00%","VBA Fmt":"1234567.89%","Fmt":"0.00%","Macro":"1234567.89%"},{"":"","Format":"11","Valuie":"1.23E+04","B Fmt":"0.00E+00","VBA Fmt":"1.23E+04","Fmt":"0.00E+00","Macro":"1.23E+04"},{"":"","Format":"12","Valuie":"12345 2/3","B Fmt":"# ?/?","VBA Fmt":"12346 ?/?","Fmt":"# ?/?","Macro":"12345 2/3"},{"":"","Format":"13","Valuie":"12345 55/81","B Fmt":"# ??/??","VBA Fmt":"12346 ??/??","Fmt":"# ??/??","Macro":"12345 55/81"},{"":"* What is this supposed to be?","Format":"14","Valuie":"10/18/33","B Fmt":"m/d/yy","VBA Fmt":"10/18/33","Fmt":"m/d/yy","Macro":"10/18/33"},{"":"","Format":"15","Valuie":"18-Oct-33","B Fmt":"d-mmm-yy","VBA Fmt":"18-Oct-33","Fmt":"d-mmm-yy","Macro":"18-Oct-33"},{"":"","Format":"16","Valuie":"18-Oct","B Fmt":"d-mmm","VBA Fmt":"18-Oct","Fmt":"d-mmm","Macro":"18-Oct"},{"":"","Format":"17","Valuie":"Oct-33","B Fmt":"mmm-yy","VBA Fmt":"Oct-33","Fmt":"mmm-yy","Macro":"Oct-33"},{"":"","Format":"18","Valuie":"4:17 PM","B Fmt":"h:mm AM/PM","VBA Fmt":"4:17 PM","Fmt":"h:mm AM/PM","Macro":"4:17 PM"},{"":"","Format":"19","Valuie":"4:17:37 PM","B Fmt":"h:mm:ss AM/PM","VBA Fmt":"4:17:37 PM","Fmt":"h:mm:ss AM/PM","Macro":"4:17:37 PM"},{"":"","Format":"20","Valuie":"16:17","B Fmt":"h:mm","VBA Fmt":"16:17","Fmt":"h:mm","Macro":"16:17"},{"":"","Format":"21","Valuie":"16:17:37","B Fmt":"h:mm:ss","VBA Fmt":"16:17:37","Fmt":"h:mm:ss","Macro":"16:17:37"},{"":"","Format":"22","Valuie":"10/18/33 16:17","B Fmt":"m/d/yy h:mm","VBA Fmt":"10/18/33 16:17","Fmt":"m/d/yy h:mm","Macro":"10/18/33 16:17"},{"":"","Format":"37","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;(#","Macro":"##0)"},{"":"","Format":"38","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;[Red](#","Macro":"##0)"},{"":"","Format":"39","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;(#","Macro":"##0.00)"},{"":"","Format":"40","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;[Red](#","Macro":"##0.00)"},{"":"","Format":"45","Valuie":"17:37","B Fmt":"mm:ss","VBA Fmt":"10:37","Fmt":"mm:ss","Macro":"17:37"},{"":"","Format":"46","Valuie":"296296:17:37","B Fmt":"[h]:mm:ss","VBA Fmt":":10:37","Fmt":"[h]:mm:ss","Macro":"296296:17:37"},{"":"","Format":"47","Valuie":"1737.0","B Fmt":"mmss.0","VBA Fmt":"1037.0","Fmt":"mmss.0","Macro":"1737.0"},{"":"","Format":"48","Valuie":"12.3E+3","B Fmt":"##0.0E+0","VBA Fmt":"123.5E+2","Fmt":"##0.0E+0","Macro":"12.3E+3"},{"":"","Format":"49","Valuie":"12345.6789","B Fmt":"@","VBA Fmt":"12345.6789","Fmt":"@","Macro":"12345.6789"}]

@@ -1,1 +0,1 @@

[{"":"","Format":"0","Valuie":"12345.6789","B Fmt":"General","VBA Fmt":"","Fmt":"","Macro":""},{"":"","Format":"1","Valuie":"12346","B Fmt":"0","VBA Fmt":"12346","Fmt":"0","Macro":"12346"},{"":"","Format":"2","Valuie":"12345.68","B Fmt":"0.00","VBA Fmt":"12345.68","Fmt":"0.00","Macro":"12345.68"},{"":"","Format":"3","Valuie":"12","B Fmt":"346","VBA Fmt":"#","Fmt":"##0","Macro":"12"},{"":"","Format":"4","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00","Macro":"12"},{"":"","Format":"9","Valuie":"1234568%","B Fmt":"0%","VBA Fmt":"1234568%","Fmt":"0%","Macro":"1234568%"},{"":"","Format":"10","Valuie":"1234567.89%","B Fmt":"0.00%","VBA Fmt":"1234567.89%","Fmt":"0.00%","Macro":"1234567.89%"},{"":"","Format":"11","Valuie":"1.23E+04","B Fmt":"0.00E+00","VBA Fmt":"1.23E+04","Fmt":"0.00E+00","Macro":"1.23E+04"},{"":"","Format":"12","Valuie":"12345 2/3","B Fmt":"# ?/?","VBA Fmt":"12346 ?/?","Fmt":"# ?/?","Macro":"12345 2/3"},{"":"","Format":"13","Valuie":"12345 55/81","B Fmt":"# ??/??","VBA Fmt":"12346 ??/??","Fmt":"# ??/??","Macro":"12345 55/81"},{"":"* What is this supposed to be?","Format":"14","Valuie":"10/18/33","B Fmt":"m/d/yy","VBA Fmt":"10/18/33","Fmt":"m/d/yy","Macro":"10/18/33"},{"":"","Format":"15","Valuie":"18-Oct-33","B Fmt":"d-mmm-yy","VBA Fmt":"18-Oct-33","Fmt":"d-mmm-yy","Macro":"18-Oct-33"},{"":"","Format":"16","Valuie":"18-Oct","B Fmt":"d-mmm","VBA Fmt":"18-Oct","Fmt":"d-mmm","Macro":"18-Oct"},{"":"","Format":"17","Valuie":"Oct-33","B Fmt":"mmm-yy","VBA Fmt":"Oct-33","Fmt":"mmm-yy","Macro":"Oct-33"},{"":"","Format":"18","Valuie":"4:17 PM","B Fmt":"h:mm AM/PM","VBA Fmt":"4:17 PM","Fmt":"h:mm AM/PM","Macro":"4:17 PM"},{"":"","Format":"19","Valuie":"4:17:37 PM","B Fmt":"h:mm:ss AM/PM","VBA Fmt":"4:17:37 PM","Fmt":"h:mm:ss AM/PM","Macro":"4:17:37 PM"},{"":"","Format":"20","Valuie":"16:17","B Fmt":"h:mm","VBA Fmt":"16:17","Fmt":"h:mm","Macro":"16:17"},{"":"","Format":"21","Valuie":"16:17:37","B Fmt":"h:mm:ss","VBA Fmt":"16:17:37","Fmt":"h:mm:ss","Macro":"16:17:37"},{"":"","Format":"22","Valuie":"10/18/33 16:17","B Fmt":"m/d/yy h:mm","VBA Fmt":"10/18/33 16:17","Fmt":"m/d/yy h:mm","Macro":"10/18/33 16:17"},{"":"","Format":"37","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;(#","Macro":"##0)"},{"":"","Format":"38","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;[Red](#","Macro":"##0)"},{"":"","Format":"39","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;(#","Macro":"##0.00)"},{"":"","Format":"40","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;[Red](#","Macro":"##0.00)"},{"":"","Format":"45","Valuie":"17:37","B Fmt":"mm:ss","VBA Fmt":"10:37","Fmt":"mm:ss","Macro":"17:37"},{"":"","Format":"46","Valuie":"296296:17:37","B Fmt":"[h]:mm:ss","VBA Fmt":":10:37","Fmt":"[h]:mm:ss","Macro":"296296:17:37"},{"":"","Format":"47","Valuie":"1737.0","B Fmt":"mmss.0","VBA Fmt":"1037.0","Fmt":"mmss.0","Macro":"1737.0"},{"":"","Format":"48","Valuie":"12.3E+3","B Fmt":"##0.0E+0","VBA Fmt":"123.5E+2","Fmt":"##0.0E+0","Macro":"12.3E+3"},{"":"","Format":"49","Valuie":"12345.6789","B Fmt":"@","VBA Fmt":"12345.6789","Fmt":"@","Macro":"12345.6789"},{"":"","Format":"0","Valuie":"12345.6789","B Fmt":"General","VBA Fmt":"","Fmt":"","Macro":""},{"":"","Format":"1","Valuie":"12346","B Fmt":"0","VBA Fmt":"12346","Fmt":"0","Macro":"12346"},{"":"","Format":"2","Valuie":"12345.68","B Fmt":"0.00","VBA Fmt":"12345.68","Fmt":"0.00","Macro":"12345.68"},{"":"","Format":"3","Valuie":"12","B Fmt":"346","VBA Fmt":"#","Fmt":"##0","Macro":"12"},{"":"","Format":"4","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00","Macro":"12"},{"":"","Format":"9","Valuie":"1234568%","B Fmt":"0%","VBA Fmt":"1234568%","Fmt":"0%","Macro":"1234568%"},{"":"","Format":"10","Valuie":"1234567.89%","B Fmt":"0.00%","VBA Fmt":"1234567.89%","Fmt":"0.00%","Macro":"1234567.89%"},{"":"","Format":"11","Valuie":"1.23E+04","B Fmt":"0.00E+00","VBA Fmt":"1.23E+04","Fmt":"0.00E+00","Macro":"1.23E+04"},{"":"","Format":"12","Valuie":"12345 2/3","B Fmt":"# ?/?","VBA Fmt":"12346 ?/?","Fmt":"# ?/?","Macro":"12345 2/3"},{"":"","Format":"13","Valuie":"12345 55/81","B Fmt":"# ??/??","VBA Fmt":"12346 ??/??","Fmt":"# ??/??","Macro":"12345 55/81"},{"":"* What is this supposed to be?","Format":"14","Valuie":"10/18/33","B Fmt":"m/d/yy","VBA Fmt":"10/18/33","Fmt":"m/d/yy","Macro":"10/18/33"},{"":"","Format":"15","Valuie":"18-Oct-33","B Fmt":"d-mmm-yy","VBA Fmt":"18-Oct-33","Fmt":"d-mmm-yy","Macro":"18-Oct-33"},{"":"","Format":"16","Valuie":"18-Oct","B Fmt":"d-mmm","VBA Fmt":"18-Oct","Fmt":"d-mmm","Macro":"18-Oct"},{"":"","Format":"17","Valuie":"Oct-33","B Fmt":"mmm-yy","VBA Fmt":"Oct-33","Fmt":"mmm-yy","Macro":"Oct-33"},{"":"","Format":"18","Valuie":"4:17 PM","B Fmt":"h:mm AM/PM","VBA Fmt":"4:17 PM","Fmt":"h:mm AM/PM","Macro":"4:17 PM"},{"":"","Format":"19","Valuie":"4:17:37 PM","B Fmt":"h:mm:ss AM/PM","VBA Fmt":"4:17:37 PM","Fmt":"h:mm:ss AM/PM","Macro":"4:17:37 PM"},{"":"","Format":"20","Valuie":"16:17","B Fmt":"h:mm","VBA Fmt":"16:17","Fmt":"h:mm","Macro":"16:17"},{"":"","Format":"21","Valuie":"16:17:37","B Fmt":"h:mm:ss","VBA Fmt":"16:17:37","Fmt":"h:mm:ss","Macro":"16:17:37"},{"":"","Format":"22","Valuie":"10/18/33 16:17","B Fmt":"m/d/yy h:mm","VBA Fmt":"10/18/33 16:17","Fmt":"m/d/yy h:mm","Macro":"10/18/33 16:17"},{"":"","Format":"37","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;(#","Macro":"##0)"},{"":"","Format":"38","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;[Red](#","Macro":"##0)"},{"":"","Format":"39","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;(#","Macro":"##0.00)"},{"":"","Format":"40","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;[Red](#","Macro":"##0.00)"},{"":"","Format":"45","Valuie":"17:37","B Fmt":"mm:ss","VBA Fmt":"10:37","Fmt":"mm:ss","Macro":"17:37"},{"":"","Format":"46","Valuie":"296296:17:37","B Fmt":"[h]:mm:ss","VBA Fmt":":10:37","Fmt":"[h]:mm:ss","Macro":"296296:17:37"},{"":"","Format":"47","Valuie":"1737.0","B Fmt":"mmss.0","VBA Fmt":"1037.0","Fmt":"mmss.0","Macro":"1737.0"},{"":"","Format":"48","Valuie":"12.3E+3","B Fmt":"##0.0E+0","VBA Fmt":"123.5E+2","Fmt":"##0.0E+0","Macro":"12.3E+3"},{"":"","Format":"49","Valuie":"12345.6789","B Fmt":"@","VBA Fmt":"12345.6789","Fmt":"@","Macro":"12345.6789"}]
[{"":"","Format":"0","Valuie":"12345.6789","B Fmt":"General","VBA Fmt":"","Fmt":"","Macro":""},{"":"","Format":"1","Valuie":"12346","B Fmt":"0","VBA Fmt":"12346","Fmt":"0","Macro":"12346"},{"":"","Format":"2","Valuie":"12345.68","B Fmt":"0.00","VBA Fmt":"12345.68","Fmt":"0.00","Macro":"12345.68"},{"":"","Format":"3","Valuie":"12","B Fmt":"346","VBA Fmt":"#","Fmt":"##0","Macro":"12"},{"":"","Format":"4","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00","Macro":"12"},{"":"","Format":"9","Valuie":"1234568%","B Fmt":"0%","VBA Fmt":"1234568%","Fmt":"0%","Macro":"1234568%"},{"":"","Format":"10","Valuie":"1234567.89%","B Fmt":"0.00%","VBA Fmt":"1234567.89%","Fmt":"0.00%","Macro":"1234567.89%"},{"":"","Format":"11","Valuie":"1.23E+04","B Fmt":"0.00E+00","VBA Fmt":"1.23E+04","Fmt":"0.00E+00","Macro":"1.23E+04"},{"":"","Format":"12","Valuie":"12345 2/3","B Fmt":"# ?/?","VBA Fmt":"12346 ?/?","Fmt":"# ?/?","Macro":"12345 2/3"},{"":"","Format":"13","Valuie":"12345 55/81","B Fmt":"# ??/??","VBA Fmt":"12346 ??/??","Fmt":"# ??/??","Macro":"12345 55/81"},{"":"* What is this supposed to be?","Format":"14","Valuie":"10/18/33","B Fmt":"m/d/yy","VBA Fmt":"10/18/33","Fmt":"m/d/yy","Macro":"10/18/33"},{"":"","Format":"15","Valuie":"18-Oct-33","B Fmt":"d-mmm-yy","VBA Fmt":"18-Oct-33","Fmt":"d-mmm-yy","Macro":"18-Oct-33"},{"":"","Format":"16","Valuie":"18-Oct","B Fmt":"d-mmm","VBA Fmt":"18-Oct","Fmt":"d-mmm","Macro":"18-Oct"},{"":"","Format":"17","Valuie":"Oct-33","B Fmt":"mmm-yy","VBA Fmt":"Oct-33","Fmt":"mmm-yy","Macro":"Oct-33"},{"":"","Format":"18","Valuie":"4:17 PM","B Fmt":"h:mm AM/PM","VBA Fmt":"4:17 PM","Fmt":"h:mm AM/PM","Macro":"4:17 PM"},{"":"","Format":"19","Valuie":"4:17:37 PM","B Fmt":"h:mm:ss AM/PM","VBA Fmt":"4:17:37 PM","Fmt":"h:mm:ss AM/PM","Macro":"4:17:37 PM"},{"":"","Format":"20","Valuie":"16:17","B Fmt":"h:mm","VBA Fmt":"16:17","Fmt":"h:mm","Macro":"16:17"},{"":"","Format":"21","Valuie":"16:17:37","B Fmt":"h:mm:ss","VBA Fmt":"16:17:37","Fmt":"h:mm:ss","Macro":"16:17:37"},{"":"","Format":"22","Valuie":"10/18/33 16:17","B Fmt":"m/d/yy h:mm","VBA Fmt":"10/18/33 16:17","Fmt":"m/d/yy h:mm","Macro":"10/18/33 16:17"},{"":"","Format":"37","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;(#","Macro":"##0)"},{"":"","Format":"38","Valuie":"12","B Fmt":"346 ","VBA Fmt":"#","Fmt":"##0 ;[Red](#","Macro":"##0)"},{"":"","Format":"39","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;(#","Macro":"##0.00)"},{"":"","Format":"40","Valuie":"12","B Fmt":"345.68","VBA Fmt":"#","Fmt":"##0.00;[Red](#","Macro":"##0.00)"},{"":"","Format":"45","Valuie":"17:37","B Fmt":"mm:ss","VBA Fmt":"10:37","Fmt":"mm:ss","Macro":"17:37"},{"":"","Format":"46","Valuie":"296296:17:37","B Fmt":"[h]:mm:ss","VBA Fmt":":10:37","Fmt":"[h]:mm:ss","Macro":"296296:17:37"},{"":"","Format":"47","Valuie":"1737.0","B Fmt":"mmss.0","VBA Fmt":"1037.0","Fmt":"mmss.0","Macro":"1737.0"},{"":"","Format":"48","Valuie":"12.3E+3","B Fmt":"##0.0E+0","VBA Fmt":"123.5E+2","Fmt":"##0.0E+0","Macro":"12.3E+3"},{"":"","Format":"49","Valuie":"12345.6789","B Fmt":"@","VBA Fmt":"12345.6789","Fmt":"@","Macro":"12345.6789"}]

@@ -1,1 +0,1 @@

[{"":"","type":"","name":"start","label":"How would you characterize your experience as an interviewer/interviewee?","tags":"exp_tags"},{"":"","type":"","name":"purposes","label":"What are some of the purposes of the interviews you've been involved in? (data gathering, recruiting, health diagnostics, investigative journalism)","tags":"none"},{"":"","type":"","name":"duration","label":"How long do your interviews usually last? Did you usually have an idea of how far along you are in the interview?","tags":""},{"":"","type":"","name":"sittings","label":"Have you participated in interviews that took place over multiple sittings? Does this seem to be a common case?","tags":""},{"":"","type":"","name":"medium","label":"Have your interviews been in person? on the phone? written response?","tags":""},{"":"","type":"","name":"admin","label":"Have you been involved in any interviewing projects in an administrative capacity? What tasks did you perform?","tags":"admin_tasks"},{"":"","type":"begin branch","name":"","label":"Administrative experience follow-up questions.","tags":""},{"":"","type":"","name":"challenges","label":"Which tasks do you find the most challenging or time consuming?","tags":""},{"":"","type":"","name":"experience","label":"What level of training or experience is typically required in your interviews?","tags":""},{"":"","type":"","name":"branching","label":"Have you administered any interviews with branching logic?","tags":""},{"":"","type":"","name":"follow-ups","label":"Do you tend to ask follow-up questions beyond what is suggested in the survey?\nHow/when do they usually occur? How are they dealt with in coding?","tags":""},{"":"","type":"","name":"recording","label":"Are your interviews recorded?\nHave you encountered any limitations in being allowed to record?","tags":""},{"":"","type":"","name":"notes","label":"Do you take notes during your interviews?","tags":""},{"":"","type":"","name":"contingencies","label":"Have you ever needed to discard recordings/notes that you collected?","tags":""},{"":"","type":"end branch","name":"","label":"","tags":""},{"":"","type":"begin branch","name":"","label":"No administrative experience.","tags":""},{"":"","type":"end branch","name":"","label":"","tags":""},{"":"","type":"","name":"comments","label":"Do you have any comments about the tool I am using? About the interview experience as a whole?","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"start","label":"How would you characterize your experience as an interviewer/interviewee?","tags":"exp_tags"},{"":"","type":"","name":"purposes","label":"What are some of the purposes of the interviews you've been involved in? (data gathering, recruiting, health diagnostics, investigative journalism)","tags":"none"},{"":"","type":"","name":"duration","label":"How long do your interviews usually last? Did you usually have an idea of how far along you are in the interview?","tags":""},{"":"","type":"","name":"sittings","label":"Have you participated in interviews that took place over multiple sittings? Does this seem to be a common case?","tags":""},{"":"","type":"","name":"medium","label":"Have your interviews been in person? on the phone? written response?","tags":""},{"":"","type":"","name":"admin","label":"Have you been involved in any interviewing projects in an administrative capacity? What tasks did you perform?","tags":"admin_tasks"},{"":"","type":"begin branch","name":"","label":"Administrative experience follow-up questions.","tags":""},{"":"","type":"","name":"challenges","label":"Which tasks do you find the most challenging or time consuming?","tags":""},{"":"","type":"","name":"experience","label":"What level of training or experience is typically required in your interviews?","tags":""},{"":"","type":"","name":"branching","label":"Have you administered any interviews with branching logic?","tags":""},{"":"","type":"","name":"follow-ups","label":"Do you tend to ask follow-up questions beyond what is suggested in the survey?\nHow/when do they usually occur? How are they dealt with in coding?","tags":""},{"":"","type":"","name":"recording","label":"Are your interviews recorded?\nHave you encountered any limitations in being allowed to record?","tags":""},{"":"","type":"","name":"notes","label":"Do you take notes during your interviews?","tags":""},{"":"","type":"","name":"contingencies","label":"Have you ever needed to discard recordings/notes that you collected?","tags":""},{"":"","type":"end branch","name":"","label":"","tags":""},{"":"","type":"begin branch","name":"","label":"No administrative experience.","tags":""},{"":"","type":"end branch","name":"","label":"","tags":""},{"":"","type":"","name":"comments","label":"Do you have any comments about the tool I am using? About the interview experience as a whole?","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""}]
[{"":"","type":"","name":"start","label":"How would you characterize your experience as an interviewer/interviewee?","tags":"exp_tags"},{"":"","type":"","name":"purposes","label":"What are some of the purposes of the interviews you've been involved in? (data gathering, recruiting, health diagnostics, investigative journalism)","tags":"none"},{"":"","type":"","name":"duration","label":"How long do your interviews usually last? Did you usually have an idea of how far along you are in the interview?","tags":""},{"":"","type":"","name":"sittings","label":"Have you participated in interviews that took place over multiple sittings? Does this seem to be a common case?","tags":""},{"":"","type":"","name":"medium","label":"Have your interviews been in person? on the phone? written response?","tags":""},{"":"","type":"","name":"admin","label":"Have you been involved in any interviewing projects in an administrative capacity? What tasks did you perform?","tags":"admin_tasks"},{"":"","type":"begin branch","name":"","label":"Administrative experience follow-up questions.","tags":""},{"":"","type":"","name":"challenges","label":"Which tasks do you find the most challenging or time consuming?","tags":""},{"":"","type":"","name":"experience","label":"What level of training or experience is typically required in your interviews?","tags":""},{"":"","type":"","name":"branching","label":"Have you administered any interviews with branching logic?","tags":""},{"":"","type":"","name":"follow-ups","label":"Do you tend to ask follow-up questions beyond what is suggested in the survey?\nHow/when do they usually occur? How are they dealt with in coding?","tags":""},{"":"","type":"","name":"recording","label":"Are your interviews recorded?\nHave you encountered any limitations in being allowed to record?","tags":""},{"":"","type":"","name":"notes","label":"Do you take notes during your interviews?","tags":""},{"":"","type":"","name":"contingencies","label":"Have you ever needed to discard recordings/notes that you collected?","tags":""},{"":"","type":"end branch","name":"","label":"","tags":""},{"":"","type":"begin branch","name":"","label":"No administrative experience.","tags":""},{"":"","type":"end branch","name":"","label":"","tags":""},{"":"","type":"","name":"comments","label":"Do you have any comments about the tool I am using? About the interview experience as a whole?","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""},{"":"","type":"","name":"","label":"","tags":""}]

@@ -6,3 +6,3 @@ var should = require('should')

describe('should convert different format to json', function() {
it('should convert xls to json', function() {
it('should convert xls to json', function(cb) {
cv2json({

@@ -14,6 +14,7 @@ input : './sample/sample.xls',

result.should.be.an.instanceOf(Object)
cb();
})
})
it('should convert xlsx to json', function() {
it('should convert xlsx to json', function(cb) {
cv2json({

@@ -25,6 +26,7 @@ input : './sample/sample.xlsx',

result.should.be.an.instanceOf(Object)
cb();
})
})
it('should convert xml to json', function() {
it('should convert xml to json', function(cb) {
cv2json({

@@ -36,6 +38,7 @@ input : './sample/sample.xml',

result.should.be.an.instanceOf(Object)
cb();
})
})
it('should convert csv to json', function() {
it('should convert csv to json', function(cb) {
cv2json({

@@ -47,6 +50,17 @@ input : './sample/sample.csv',

result.should.be.an.instanceOf(Object)
cb()
})
})
it('should convert tsv to json', function(cb) {
cv2json({
input : './sample/sample.tsv',
output: null
}, function(err, result) {
should.not.exist(err)
result.should.be.an.instanceOf(Object)
cb()
})
})
})

@@ -56,3 +70,3 @@

it('should convert xls to json', function() {
it('should convert xls to json', function(cb) {
cv2json({

@@ -64,2 +78,3 @@ input : './sample/sample.xls',

result.should.be.an.instanceOf(Object)
cb();
})

@@ -70,3 +85,3 @@

it('should convert csv to json', function() {
it('should convert csv to json', function(cb) {
cv2json({

@@ -78,2 +93,3 @@ input : './sample/sample.csv',

result.should.be.an.instanceOf(Object)
cb();
})

@@ -84,3 +100,3 @@

it('should convert xlsx to json', function() {
it('should convert xlsx to json', function(cb) {
cv2json({

@@ -92,2 +108,3 @@ input : './sample/sample.xlsx',

result.should.be.an.instanceOf(Object)
cb();
})

@@ -97,3 +114,3 @@

it('should convert xml to json', function() {
it('should convert xml to json', function(cb) {
cv2json({

@@ -105,5 +122,17 @@ input : './sample/sample.xml',

result.should.be.an.instanceOf(Object)
cb();
})
})
it('should convert tsv to json', function(cb) {
cv2json({
input : './sample/sample.tsv',
output: './sample/test_tsv.json'
}, function(err, result) {
should.not.exist(err)
result.should.be.an.instanceOf(Object)
cb();
})
})
})

@@ -132,2 +161,7 @@

})
it('test_tsv.json should exist', function() {
var exist = fs.existsSync('./sample/test_tsv.json');
exist.should.be.true;
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc