forked from seth/ipv4.army
refactor a lot
This commit is contained in:
parent
cf21a56d7a
commit
deb223c642
27 changed files with 401 additions and 381 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,17 +0,0 @@
|
|||
import { Glob } from "bun";
|
||||
|
||||
const woff2 = new Glob("./*.woff2");
|
||||
|
||||
for await (const file of woff2.scan(".")) {
|
||||
const font = Bun.file(file);
|
||||
|
||||
const name = font.name?.split("-")[1];
|
||||
|
||||
await Bun.write(`./${name}`, await font.arrayBuffer());
|
||||
console.log(`Renamed ${file} to ${name}`);
|
||||
|
||||
await font.delete();
|
||||
console.log(`Deleted original font file: ${file}`);
|
||||
}
|
||||
|
||||
console.log("Done")
|
Loading…
Add table
Add a link
Reference in a new issue