ziya_hao123
Advanced tools
Comparing version 1.0.4 to 2.0.0
38
index.js
@@ -39,2 +39,40 @@ var path = require('path'); | ||
/** | ||
* 读取目标 xlsx 文件,缓存至内存cache global.memory_cache.hao123 | ||
* @param path xlsx file fulpath | ||
* @param tasks Task Array | ||
* | ||
* sample 1 : | ||
* [ | ||
{ // 1st sheet | ||
sheetNum: 2, | ||
defVal: "_", // default for empty element | ||
splitThTd: true, // if split table head and content | ||
header:1, // read row 1 as header | ||
memKey:{ | ||
th: "device_company_owned_ths", // head memory key | ||
td: "device_company_owned_tds" // body memory key | ||
} | ||
}, | ||
{ // 2nd sheet | ||
sheetNum: 1, | ||
defVal: "_", | ||
splitThTd: true, | ||
header:1, | ||
memKey:{ | ||
th: "device_customer_provided_ths", | ||
td: "device_customer_provided_tds" | ||
} | ||
}] | ||
} | ||
* sample 2 : | ||
[ | ||
{ | ||
sheetNum:0, // read sheet 1 | ||
defVal: "", // default value for empty element | ||
duplicatedColArr:[0,1,2,3], // duplicated cols numbers use pre element value in same col | ||
memKey:"ziya_aid_project" // memory key | ||
}] | ||
*/ | ||
function readToMemAndWatch(path, tasks) | ||
@@ -41,0 +79,0 @@ { |
{ | ||
"_from": "ziya_hao123@^1.0.2", | ||
"_id": "ziya_hao123@1.0.3", | ||
"_from": "ziya_hao123@^1.0.3", | ||
"_id": "ziya_hao123@1.0.4", | ||
"_inBundle": false, | ||
"_integrity": "sha512-8HyvWbT6XxjNKXwhbXGN7fMbsXdFc+uFmSCh9Sep+iX5n0CYUoVimM4ceYav3g7KE4wWteXRFwDoPb8ZPFh1MA==", | ||
"_integrity": "sha512-gZjvhzMya78TZFww56dUagTPYM+K0qFSP6cr7eonr0yqS3bSqP52qs4yf92wgm/M2jlgLd2v3FTmJnCYMuyR/Q==", | ||
"_location": "/ziya_hao123", | ||
@@ -11,8 +11,8 @@ "_phantomChildren": {}, | ||
"registry": true, | ||
"raw": "ziya_hao123@^1.0.2", | ||
"raw": "ziya_hao123@^1.0.3", | ||
"name": "ziya_hao123", | ||
"escapedName": "ziya_hao123", | ||
"rawSpec": "^1.0.2", | ||
"rawSpec": "^1.0.3", | ||
"saveSpec": null, | ||
"fetchSpec": "^1.0.2" | ||
"fetchSpec": "^1.0.3" | ||
}, | ||
@@ -23,5 +23,5 @@ "_requiredBy": [ | ||
], | ||
"_resolved": "https://registry.npmjs.org/ziya_hao123/-/ziya_hao123-1.0.3.tgz", | ||
"_shasum": "16aa67f81c912e3876fdf1166438aa312e9ca7d9", | ||
"_spec": "ziya_hao123@^1.0.2", | ||
"_resolved": "https://registry.npmjs.org/ziya_hao123/-/ziya_hao123-1.0.4.tgz", | ||
"_shasum": "06c04e22fe5f8e1a87148c46b591fd92df8c2a7a", | ||
"_spec": "ziya_hao123@^1.0.3", | ||
"_where": "D:\\Works\\Ziya\\PreDevelop\\hao123.ziyacloud.com", | ||
@@ -47,3 +47,3 @@ "author": { | ||
}, | ||
"version": "1.0.4" | ||
"version": "2.0.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5370
114