MCPcopy
hub / github.com/motdotla/dotenv / parseBoolean

Function parseBoolean

lib/main.js:23–28  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

21}
22
23function parseBoolean (value) {
24 if (typeof value === 'string') {
25 return !['false', '0', 'no', 'off', ''].includes(value.toLowerCase())
26 }
27 return Boolean(value)
28}
29
30function supportsAnsi () {
31 return process.stdout.isTTY // && process.env.TERM !== 'dumb'

Callers 2

_configVaultFunction · 0.85
configDotenvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…