An open API service indexing awesome lists of open source software.

https://github.com/node-fetch/btoa-lite

Simplest btoa implementation.
https://github.com/node-fetch/btoa-lite

Last synced: 8 months ago
JSON representation

Simplest btoa implementation.

Awesome Lists containing this project

README

          

# @node-fetch/btoa-lite

> Simplest btoa implementation

## Install

```sh
npm install @node-fetch/btoa-lite
```

## Usage

```js
import btoa from '@node-fetch/btoa-lite';

console.log(btoa('Hello World'));
//=> 'SGVsbG8gV29ybGQ='
```

## API

### [btoa(data)](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa)

## FAQ

### What's the difference with [`btoa-lite`](https://github.com/hughsk/btoa-lite)?

The Node.js implementation of that module uses a deprecated method.