mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2024-10-18 13:31:15 -04:00
⚡ clean utils
This commit is contained in:
parent
885f75bd80
commit
bf2dff2370
1 changed files with 0 additions and 15 deletions
|
@ -1,15 +0,0 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { Frames } from "../types";
|
||||
|
||||
interface SaveFramesArgs {
|
||||
frames: Frames;
|
||||
bitmapsDir: string;
|
||||
}
|
||||
|
||||
export const saveFrames = ({ frames, bitmapsDir }: SaveFramesArgs) => {
|
||||
for (let [fileName, { buffer }] of Object.entries(frames)) {
|
||||
const out_path = path.resolve(bitmapsDir, fileName);
|
||||
fs.writeFileSync(out_path, buffer, { encoding: "binary" });
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue