This commit is contained in:
2022-09-30 05:39:11 +00:00
parent 41ee9463ae
commit 4687fa49bc
11418 changed files with 1312504 additions and 0 deletions

View File

@ -0,0 +1,2 @@
declare const boolean: (value: any) => boolean;
export { boolean };

16
buildfiles/node_modules/boolean/build/lib/boolean.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.boolean = void 0;
const boolean = function (value) {
if (typeof value === 'string') {
return ['true', 't', 'yes', 'y', 'on', '1'].includes(value.trim().toLowerCase());
}
if (typeof value === 'number') {
return value === 1;
}
if (typeof value === 'boolean') {
return value;
}
return false;
};
exports.boolean = boolean;