# meepo-base64

> base64 for angular service

Latest version **1.1.6** (published 2018-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install meepo-base64
pnpm add meepo-base64
yarn add meepo-base64
bun add meepo-base64
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2018-01-03 |
| First published | 2017-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | imeepos |
| Maintainers | imeepos2 |

## Links

- npm: https://www.npmjs.com/package/meepo-base64
- Repository: https://github.com/meepobrother/meepo-base64
- Homepage: https://github.com/meepobrother/meepo-base64/README.md
- Issues: https://github.com/meepobrother/meepo-base64/issues
- npm.io page: https://npm.io/package/meepo-base64

## Dependencies (7)

- [rxjs](https://npm.io/package/rxjs.md) ^5.5.5
- [zone.js](https://npm.io/package/zone.js.md) 0.8.4
- [js-base64](https://npm.io/package/js-base64.md) >=2.4.0
- [@angular/core](https://npm.io/package/@angular/core.md) >=5.1.2
- [@angular/common](https://npm.io/package/@angular/common.md) >=5.1.2
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.10
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) >=5.1.2

## Recent versions

- 1.1.6 (latest) — 2018-01-03
- 1.1.5 — 2017-12-30
- 1.1.4 — 2017-12-30
- 1.1.3 — 2017-12-29
- 1.1.2 — 2017-12-29
- 1.1.1 — 2017-12-25
- 1.1.0 — 2017-12-25
- 1.0.9 — 2017-12-25
- 1.0.7 — 2017-12-25
- 1.0.6 — 2017-12-25
- 1.0.5 — 2017-12-25
- 1.0.0 — 2017-12-22

## README

# [js-base64](https://github.com/dankogai/js-base64) 

- 安装

```sh
yarn add meepo-base64
```

- 引入

```ts
import { Base64Module } from '../../src/app/app';
@NgModule({
  imports: [
    Base64Module.forRoot()
  ]
})
export class AppModule { }
```

- 使用

```ts
import { Base64Service } from 'meepo-base64';

export class AppComponent  {
  result: string = '';
  source: string = '';
  constructor(
    public base64: Base64Service
  ) { }

  encode() {
    this.result = this.base64.encode(this.source);
  }

  decode() {
    this.result = this.base64.decode(this.source);
  }

  encodeURI() {
    this.result = this.base64.encodeURI(this.source);
  }

  atob() {
    this.result = this.base64.atob(this.source);
  }

  btoa() {
    this.result = this.base64.btoa(this.source);
  }

  fromBase64() {
    this.result = this.base64.fromBase64(this.source);
  }

  toBase64() {
    this.result = this.base64.toBase64(this.source);
  }

  btou() {
    this.result = this.base64.btou(this.source);
  }

  utob() {
    this.result = this.base64.utob(this.source);
  }
}
```

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