object-to-google-spreadsheet
Advanced tools
Comparing version 1.0.11 to 1.0.12
15
index.js
const ArrayToGoogleSheets = require('array-to-google-sheets'); | ||
const jsonToGssFormat = (obj, rowName, prop, a1, sort) => { | ||
function jsonToGssFormat(obj, rowName, prop, a1, sort) { | ||
@@ -27,12 +27,17 @@ // instantiating the set of the fields names | ||
// check if input is array, stringifies accordingly | ||
const b = inp => inp instanceof Array ? inp.join(", ") : inp; | ||
// check if input is array, stringify accordingly | ||
function b(inp) { | ||
return inp instanceof Array ? inp.join(", ") : inp; | ||
} | ||
// catch and throw error | ||
const er = (cond, msg) => { | ||
function er(cond, msg) { | ||
if (cond) throw new Error(msg); | ||
}; | ||
// clean input out of invalid string charchters | ||
const c = inp => typeof inp == 'string' ? inp.replace(/[\u0000-\u001f]/g,'') : inp; | ||
function c(inp) { | ||
return typeof inp == 'string' ? inp.replace(/[\u0000-\u001f]/g,'') : inp; | ||
} | ||
@@ -39,0 +44,0 @@ module.exports = class { |
{ | ||
"name": "object-to-google-spreadsheet", | ||
"version": "1.0.11", | ||
"description": "Push an array of unstructured data objects into a Google spreadsheet", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ehab180hb/object-to-google-spreadsheet.git" | ||
}, | ||
"keywords": [ | ||
"google", | ||
"spreadsheets" | ||
], | ||
"author": "Ehab Khaireldin", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ehab180hb/object-to-google-spreadsheet/issues" | ||
}, | ||
"homepage": "https://github.com/ehab180hb/object-to-google-spreadsheet#readme", | ||
"dependencies": { | ||
"array-to-google-sheets": "^1.0.0" | ||
} | ||
"name": "object-to-google-spreadsheet", | ||
"version": "1.0.12", | ||
"description": "Push an array of unstructured data objects into a Google spreadsheet", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ehab180hb/object-to-google-spreadsheet.git" | ||
}, | ||
"keywords": [ | ||
"google", | ||
"spreadsheets" | ||
], | ||
"author": "Ehab Khaireldin", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ehab180hb/object-to-google-spreadsheet/issues" | ||
}, | ||
"homepage": "https://github.com/ehab180hb/object-to-google-spreadsheet#readme", | ||
"dependencies": { | ||
"array-to-google-sheets": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"jest": "^22.4.2", | ||
"rewire": "^3.0.2" | ||
} | ||
} |
@@ -59,3 +59,3 @@ Quickly publish a set of unstructured JSON objects into a Google spreadsheet that you specify. | ||
} | ||
})(); | ||
})(); | ||
``` | ||
@@ -62,0 +62,0 @@ |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
8948
6
108
0
3