UNPKG

mongodb-memory-server-core

Version:

MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.

27 lines 797 B
export interface OtherOS { os: 'aix' | 'android' | 'darwin' | 'freebsd' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | string; } export interface LinuxOS extends OtherOS { os: 'linux'; dist: string; release: string; codename?: string; id_like?: string[]; } export declare type AnyOS = OtherOS | LinuxOS; /** * Check if the OS is a LinuxOS Typeguard * @param os The OS object to check for */ export declare function isLinuxOS(os: AnyOS): os is LinuxOS; /** Get an OS object */ export declare function getOS(): Promise<AnyOS>; /** * Parse LSB-like output (either command or file) */ export declare function parseLSB(input: string): LinuxOS; /** * Parse OSRelease-like output */ export declare function parseOS(input: string): LinuxOS; //# sourceMappingURL=index.d.ts.map