bankcode-bic
Version:
Convert bank codes from IBAN to BICs, Name of bank. Currently supports only some selected EU countries.
20 lines (19 loc) • 687 B
TypeScript
import { CacheType } from "./cache.js";
import { promises } from "node:fs";
import { deserialize, serialize } from "node:v8";
//#region src/libs/cache.node.d.ts
declare class NodeCache implements CacheType {
private cacheDir;
private fs;
private serialize;
private deserialize;
constructor(cacheDir?: string, fsFn?: typeof promises, v8toolsFn?: {
serialize: typeof serialize;
deserialize: typeof deserialize;
});
get: (key: string, transformer?: (value: any) => any) => Promise<string | null>;
set: (key: string, value: string, ttlMs: number, transformer?: (value: any) => any) => Promise<void>;
clear: () => Promise<void>;
}
//#endregion
export { NodeCache };