MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / bool

Function bool

packages/core/src/utils/env-vars.ts:31–31  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

29 };
30 const array = (v: string) => v.split(',').map(vv => vv.trim());
31 const bool = (v: string) => ['true', 't', '1'].includes(v.toLowerCase());
32 const num = (v: string) => +v;
33 const read = (o: Dictionary, envPrefix: string, key: string, mapper: (v: string) => unknown = v => v) => {
34 const envKey = getEnvKey(key, envPrefix);

Callers 1

getSettingsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected