Replace deprecated calls in atob and btoa

This commit is contained in:
Luke
2018-10-03 23:08:31 +02:00
parent bd03c24cbd
commit c798852df7
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Creates a base-64 encoded ASCII string from a String object in which each charac
Create a `Buffer` for the given string with binary encoding and use `Buffer.toString('base64')` to return the encoded string.
```js
const btoa = str => new Buffer(str, 'binary').toString('base64');
const btoa = str => new Buffer.from(str, 'binary').toString('base64');
```
```js