UNPKG

silvie

Version:

Typescript Back-end Framework

31 lines (30 loc) 656 B
export default class BlackList { filename: string; blackList: string[]; constructor(filename: string); /** * Read blacklist from the file * @private */ private readBlacklist; /** * Write current blacklist array into the file * @private */ private writeBlacklist; /** * Add a token to the blacklist * @param token */ add(token: string): boolean; /** * Check if a token is blacklisted or not * @param token */ has(token: string): boolean; /** * Remove a token from the blacklist * @param token */ remove(token: string): boolean; }