使用方法
import {imgUrl2Base64} from 'url2base64-js'
var urlStr = 'xxxxx'
imgUrl2Base64(urlStr, function(base64){
console.log(base64);
})
import {imgUrl2Base64} from 'url2base64-js'
var urlStr = 'xxxxx'
imgUrl2Base64(urlStr, function(base64){
console.log(base64);
})
npm i url2base64-js
0
0.0.2
MIT
3.98 kB
4