Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yach.util.imgtobase64

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach.util.imgtobase64 - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

11

lib/yach.util.imgtobase64.js

@@ -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){

2

package.json
{
"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
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