mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-22 01:43:29 +01:00
Change ND genre ids to b64 encoded strings of genre, so as to differentiate between genre name and id (#54)
This commit is contained in:
2
src/b64.ts
Normal file
2
src/b64.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const b64Encode = (value: string) => Buffer.from(value).toString("base64");
|
||||
export const b64Decode = (value: string) => Buffer.from(value, "base64").toString("ascii");
|
||||
Reference in New Issue
Block a user