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.
- Host: GitHub
- URL: https://github.com/node-fetch/btoa-lite
- Owner: node-fetch
- License: mit
- Created: 2020-08-08T10:58:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-13T04:33:07.000Z (over 2 years ago)
- Last Synced: 2024-11-05T21:38:48.445Z (about 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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.