First upload version 0.0.1
This commit is contained in:
11
node_modules/env-var/lib/accessors/bool-strict.js
generated
vendored
Normal file
11
node_modules/env-var/lib/accessors/bool-strict.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'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'
|
||||
}
|
||||
Reference in New Issue
Block a user