UNPKG

@jkcfg/std

Version:

jk standard library

20 lines (19 loc) 484 B
/** * @module std */ import { Format } from './write'; export declare const stdin: unique symbol; export declare enum Encoding { Bytes = 0, String = 1, JSON = 2 } export interface ReadOptions { encoding?: Encoding; format?: Format; module?: string; } export declare function valuesFormatFromPath(path: string): Format; declare type ReadPath = string | typeof stdin; export declare function read(path?: ReadPath, opts?: ReadOptions): Promise<any>; export {};