# vue-base64-way

> base64-related tool

Latest version **1.0.0** (published 2020-10-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-base64-way
pnpm add vue-base64-way
yarn add vue-base64-way
bun add vue-base64-way
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-10-14 |
| First published | 2020-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 40.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tina.Lin |
| Maintainers | b7070587 |
| Keywords | base64 |

## Links

- npm: https://www.npmjs.com/package/vue-base64-way
- Repository: https://github.com/7070587/web-service-base64
- Issues: https://github.com/7070587/web-service-base64/issues
- npm.io page: https://npm.io/package/vue-base64-way

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-10-14

## README

# vue-base64-way

The vue-base64-way provide a instance or class with common used base64-related tool.
This tool use frontend.

## Installation

1. Via npm

    ```bash
    npm install vue-base64-way
    ```

2. In package.json:

    ```json
    {
        ...
        "dependencies": {
            "vue-base64-way": "1.00.00",
            ...
        }
        ...
    }
    ```

    then install by npm:

    ```bash
    npm install
    ```

3. Update vue-base64-way

    ```bash
    npm update vue-base64-way
    ```

## Usage

#### General Use

```typescript
import { ServiceBase64 } from 'vue-base64-way';
```

#### Variable Use

```typescript
import { personEmpty, imageEmpty } from 'vue-base64-way';
```

#### Class

```typescript
import { ServiceBase64Class } from 'vue-base64-way';

console.log(new ServiceBase64Class().isUrl('https://www.google.com.tw/?hl=zh-TW'));
class ServiceBase64Extend extends ServiceBase64Class {
    ...
}
```

## Properties

## Methods

#### isBase64Image

check string is base64

#### isUrl

check string is url

#### getBase64

file get base64

#### fileToBase64

file to base64

#### urlToBase64

url any type to base64

#### urlImageToBase64

url image to base64

#### base64ToBlob

base64 to blob

#### getBase64ContentType

get base64 content type

#### getBase64FullString

get base64 full string. Include content type. For example: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoA

#### imageBase64Src

get image base64 src

#### personEmpty

default person image base64

#### imageEmpty

default empty image base64

## Other Notes

1. [npm url](https://www.npmjs.com/package/vue-base64-way)
2. [git](https://github.com/7070587/vue-base64-way)

---
_Source: https://npm.io/package/vue-base64-way · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
