mirror of
https://github.com/hanzoai/mongodb-memory-server.git
synced 2026-09-24 17:00:24 +00:00
861 B
861 B
id, title
| id | title |
|---|---|
| mongo-binary | MongoBinary |
API Documentation of MongoBinary-Class
Functions
:::note This class is not actually meant to be constructed, it only consists of static functions & values :::
getSystemPath
Typings: static async getSystemPath(systemBinary: string): Promise<string | undefined>
Try to stat the given systemBinary path, and return it if successfull, otherwise undefined
getDownloadPath
Typings: static async getDownloadPath(options: Required<MongoBinaryOpts>): Promise<string>
Get an binary from cache or download it
getPath
Typings: static async getPath(opts: MongoBinaryOpts = {}): Promise<string>
Get an working binary and returns the path to it
(Calls getDownloadPath)
Values
cache
Typings: static cache: Map<string, string>
Global Cache for binaries