Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 12aa25e

Browse files
committed
remove references to Buffer
1 parent fb83508 commit 12aa25e

File tree

2 files changed

+8406
-8
lines changed

2 files changed

+8406
-8
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
const base64 = (str: string): string => {
2-
try {
3-
return btoa(str);
4-
} catch (err) {
5-
// @ts-ignore
6-
return Buffer.from(str).toString('base64');
7-
}
8-
};
1+
const base64 = (str: string): string => { return btoa(str); };

0 commit comments

Comments
 (0)