# base64-browser

> 直接在浏览器使用的 base64 encode/decode 函数。支持中文或其他 utf8 格式的字符串

Latest version **1.0.1** (published 2021-09-06) · ISC license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2021-09-06 |
| First published | 2021-09-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | neooosky |

## Links

- npm: https://www.npmjs.com/package/base64-browser
- Repository: https://github.com/liuzemei/base64-browser
- Homepage: https://github.com/liuzemei/base64-browser#readme
- Issues: https://github.com/liuzemei/base64-browser/issues
- npm.io page: https://npm.io/package/base64-browser

## Recent versions

- 1.0.1 (latest) — 2021-09-06
- 1.0.0 — 2021-09-03

## README

# base64-browser
直接在浏览器使用的 base64 encode/decode 函数。支持中文或其他 utf8 格式的字符串

## 安装
```shell
npm i base64-browser
```

## 使用
1. 引入
```js
// CMD...
const {encode, decode} = require('base64-browser')

// ES6...
import {encode,decode} from 'base64-browser'
```

2. 使用
```js
encode("你好，世界。") // 5L2g5aW977yM5LiW55WM44CC
decode("5L2g5aW977yM5LiW55WM44CC") // 你好，世界。
```

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