dsql-admin/dsql-app/package-shared/shell/functions/jsonToBase64.ts
Benjamin Toby e0a030f10d Updates
2025-01-13 09:00:21 +01:00

9 lines
245 B
TypeScript

import fs from "fs";
import path from "path";
const jsonFile = path.resolve(__dirname, "../../jsonData/userPriviledges.json");
const base64File = Buffer.from(fs.readFileSync(jsonFile, "utf8")).toString(
"base64"
);
console.log(base64File);