Add export_zip support

This commit is contained in:
2023-05-25 10:15:01 +08:00
parent ab4be7f8b4
commit 38e970dc7d
9 changed files with 183 additions and 8 deletions

View File

@@ -105,3 +105,9 @@ export async function asyncForEach<T, V>(
await callback.apply(thisArg, [arr[i], i, arr]);
}
}
export function addZero(n: string | number, len: number) {
let s = n.toString();
while (s.length < len) s = "0" + s;
return s;
}