yach.util.imgtobase64
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -67,2 +67,13 @@ // qiao | ||
// base64 imgArr get | ||
exports.base64ImgArrGet = async function(list, key){ | ||
if(!list || !list.length || !key) return []; | ||
for(var i=0; i<list.length; i++){ | ||
list[i][key] = await base64ImgGet(list[i][key]); | ||
} | ||
return list; | ||
} | ||
// check url | ||
@@ -69,0 +80,0 @@ async function checkUrl(url){ |
{ | ||
"name": "yach.util.imgtobase64", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "yach util: img to base64", |
# api | ||
1. initIndexedDB, 初始化本地数据库 | ||
2. base64ImgGet, 获取图片url对应的base64值,暂存数组 | ||
3. base64ImgGetNow, 获取图片url对应的base64值,立即获取 | ||
4. base64ImgStart, 开始图片url转base64的定时器 | ||
### initIndexedDB | ||
初始化本地数据库 | ||
### base64ImgGet | ||
获取图片url对应的base64值,暂存数组 | ||
### base64ImgGetNow | ||
获取图片url对应的base64值,立即获取 | ||
### base64ImgArrGet | ||
获取图片url对应的base64值,数组的方式 | ||
### base64ImgStart | ||
开始图片url转base64的定时器 | ||
## 0.0.1.20200608 | ||
1. init project | ||
2. exports | ||
2. exports | ||
3. base64ImgArrGet |
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
5118
120
21