{"_id":"boolbase","_rev":"7-dd225e720014e59e0c8e3ae20b1350fe","name":"boolbase","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"boolbase","version":"1.0.0","keywords":["boolean","function"],"author":{"name":"Felix Boehm","email":"me@feedic.com"},"license":"ISC","_id":"boolbase@1.0.0","maintainers":[{"name":"feedic","email":"me@feedic.com"}],"homepage":"https://github.com/fb55/boolbase","bugs":{"url":"https://github.com/fb55/boolbase/issues"},"dist":{"shasum":"68dff5fbe60c51eb37725ea9e3ed310dcc1e776e","tarball":"https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz","integrity":"sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==","signatures":[{"sig":"MEUCIDnj9Fb6MV0ijpKOGLBTlGLuLLGf93sOI1Tp6YqrMI/cAiEAiem+6dYcR3Z21eyzZuPqOR5ddxPqF+qzMrXW1LWDtEw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"feedic","email":"me@feedic.com"},"repository":{"url":"https://github.com/fb55/boolbase","type":"git"},"_npmVersion":"1.4.2","description":"two functions: One that returns true, one that returns false","directories":{}},"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":{"integrity":"sha512-DkVaaQHymRhpYEYo9x1oo7Q7B0Y6KJUsjm3c9eTyFDby4MHLBTwZ6ZDWBel5zrYxj1WsZgC5oLpiz+93MluXeA==","shasum":"832968d211d5c008d833b86e049bb3943036e5b1","tarball":"https://registry.npmjs.org/boolbase/-/boolbase-2.0.0.tgz","fileCount":6,"unpackedSize":2781,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/boolbase@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCfp5h65RYoT6bnqT6R5b7FvqgTNsJtLWhSWIErpvb0KgIgRhcBS+xXGsh9nc8x91uqMPjTwpOf++AD4OsOyGUnoJ0="}]},"_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":"me@feedic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/boolbase_2.0.0_1773753204402_0.5262832799539794"},"_hasShrinkwrap":false}},"time":{"created":"2014-02-15T14:44:50.619Z","modified":"2026-03-17T13:13:24.849Z","1.0.0":"2014-02-15T14:44:50.620Z","2.0.0":"2026-03-17T13:13:24.549Z"},"bugs":{"url":"https://github.com/fb55/boolbase/issues"},"author":{"name":"Felix Boehm","email":"me@feedic.com"},"license":"ISC","homepage":"https://github.com/fb55/boolbase","keywords":["boolean","function"],"repository":{"type":"git","url":"git+https://github.com/fb55/boolbase.git"},"description":"two functions: One that returns true, one that returns false","maintainers":[{"name":"fb55","email":"me@feedic.com"}],"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","readmeFilename":"README.md"}