This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/env-var/lib/accessors/bool-strict.js
T

12 lines
253 B
JavaScript

'use strict'
module.exports = function asBoolStrict (value) {
const val = value.toLowerCase()
if ((val !== 'false') && (val !== 'true')) {
throw new Error('should be either "true", "false", "TRUE", or "FALSE"')
}
return val !== 'false'
}