UNPKG

@hp4k1h5/terminordle

Version:

> multiplayer [wordle](https://www.powerlanguage.co.uk/wordle/) clone in your terminal

18 lines (17 loc) 558 B
/// <reference types="node" /> /// <reference types="node" /> import * as fs from 'fs'; import * as readline from 'readline'; import { AddressInfo } from 'ws'; export declare function fp(relPath: string): string; export declare type Line = { [key: string]: string | Date | AddressInfo | number | undefined; }; export declare class Log { filepath: string; logger: fs.WriteStream; reader: readline.Interface; constructor(relPath: string, overwrite?: boolean); log(line: Line): void; read(): AsyncGenerator<string, void, unknown>; }