five-on-it / apps/server/src/level-source / resolveLevel
Function: resolveLevel()
resolveLevel(
spec):Level
Defined in: apps/server/src/level-source.ts:25
Resolves a level from its name or the path of a level file (FOI_LEVEL; the default level when empty). Throws, listing the bundled names, for anything else, and when the file is not a valid level.
Parameters
spec
string | undefined