MCPcopy Create free account
hub / github.com/nodejs/node / getbool

Function getbool

deps/v8/third_party/jinja2/ext.py:813–814  ·  view source on GitHub ↗
(options: t.Mapping[str, str], key: str, default: bool = False)

Source from the content-addressed store, hash-verified

811 extensions[InternationalizationExtension] = None
812
813 def getbool(options: t.Mapping[str, str], key: str, default: bool = False) -> bool:
814 return options.get(key, str(default)).lower() in {"1", "on", "yes", "true"}
815
816 silent = getbool(options, "silent", True)
817 environment = Environment(

Callers 1

babel_extractFunction · 0.70

Calls 2

strFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected