{"_id":"boolbase","_rev":"4320835","name":"boolbase","description":"two functions: One that returns true, one that returns false","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"fb55","email":""}],"time":{"modified":"2026-04-07T22:31:31.000Z","created":"2014-02-15T14:44:50.620Z","2.0.0":"2026-03-17T13:13:24.549Z","1.0.0":"2014-02-15T14:44:50.620Z"},"users":{},"author":{"name":"Felix Boehm","email":"me@feedic.com"},"repository":{"type":"git","url":"git+https://github.com/fb55/boolbase.git"},"versions":{"2.0.0":{"name":"boolbase","version":"2.0.0","type":"module","description":"two functions: One that returns true, one that returns false","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc","test":"npm run build && node --test","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/fb55/boolbase.git"},"keywords":["boolean","function"],"author":{"name":"Felix Boehm","email":"me@feedic.com"},"license":"ISC","bugs":{"url":"https://github.com/fb55/boolbase/issues"},"homepage":"https://github.com/fb55/boolbase","engines":{"node":">=20.19.0"},"funding":{"type":"github","url":"https://github.com/sponsors/fb55"},"devDependencies":{"typescript":"^5.9.3"},"gitHead":"ede159ca6b89b9709e7322c53eeb385ac7fdfefb","_id":"boolbase@2.0.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"shasum":"832968d211d5c008d833b86e049bb3943036e5b1","size":1622,"noattachment":false,"key":"/boolbase/-/boolbase-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/boolbase/download/boolbase-2.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:25d4a7c0-cd3a-4615-b752-07937a68a69d"}},"directories":{},"maintainers":[{"name":"fb55","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/boolbase_2.0.0_1773753204402_0.5262832799539794"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-17T13:13:24.549Z","publish_time":1773753204549,"_source_registry_name":"default","_cnpm_publish_time":1773753204549},"1.0.0":{"name":"boolbase","version":"1.0.0","description":"two functions: One that returns true, one that returns false","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/fb55/boolbase"},"keywords":["boolean","function"],"author":{"name":"Felix Boehm","email":"me@feedic.com"},"license":"ISC","bugs":{"url":"https://github.com/fb55/boolbase/issues"},"homepage":"https://github.com/fb55/boolbase","_id":"boolbase@1.0.0","dist":{"shasum":"68dff5fbe60c51eb37725ea9e3ed310dcc1e776e","size":851,"noattachment":false,"key":"/boolbase/-/boolbase-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/boolbase/download/boolbase-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"fb55","email":""}],"directories":{},"publish_time":1392475490620,"_cnpm_publish_time":1392475490620,"_hasShrinkwrap":false}},"readme":"# boolbase\nThis very simple module provides two basic functions, one that always returns true (`trueFunc`) and one that always returns false (`falseFunc`).\n\n### Why is this needed?\n\nBy having only a single instance of these functions around, it's possible to do some nice optimizations.\nEg. [`css-select`](https://github.com/fb55/css-select) uses these functions to determine whether a selector won't match any elements\nIf that's the case, the DOM doesn't even need to be touched.\n\n### And why is this a separate module?\n\nI'm trying to modularize `css-select` and most modules depend on these functions.\nIMHO, having a separate module is the easiest solution to this problem.\n","_attachments":{},"homepage":"https://github.com/fb55/boolbase","bugs":{"url":"https://github.com/fb55/boolbase/issues"},"license":"ISC"}