The vue-base64-way provide a instance or class with common used base64-related tool. This tool use frontend.
-
Via npm
npm install vue-base64-way
-
In package.json:
{ ... "dependencies": { "vue-base64-way": "1.00.00", ... } ... }
then install by npm:
npm install
-
Update vue-base64-way
npm update vue-base64-way
import { ServiceBase64 } from 'vue-base64-way';
import { personEmpty, imageEmpty } from 'vue-base64-way';
import { ServiceBase64Class } from 'vue-base64-way';
console.log(new ServiceBase64Class().isUrl('https://www.google.com.tw/?hl=zh-TW'));
class ServiceBase64Extend extends ServiceBase64Class {
...
}
check string is base64
check string is url
file get base64
file to base64
url any type to base64
url image to base64
base64 to blob
get base64 content type
get base64 full string. Include content type. For example: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoA
get image base64 src
default person image base64
default empty image base64