{"_id":"boolbase","_rev":"6-efca87a61db0056c8fb0fab29b879f30","name":"boolbase","dist-tags":{"latest":"1.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":{}}},"time":{"created":"2014-02-15T14:44:50.619Z","modified":"2026-02-21T19:30:39.381Z","1.0.0":"2014-02-15T14:44:50.620Z"},"description":"two functions: One that returns true, one that returns false","author":{"name":"Felix Boehm","email":"me@feedic.com"},"repository":{"url":"https://github.com/fb55/boolbase","type":"git"},"keywords":["boolean","function"],"license":"ISC","homepage":"https://github.com/fb55/boolbase","bugs":{"url":"https://github.com/fb55/boolbase/issues"},"maintainers":[{"email":"me@feedic.com","name":"fb55"}],"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###WTF?\n\nBy having only a single instance of these functions around, it's possible to do some nice optimizations. Eg. [`CSSselect`](https://github.com/fb55/CSSselect) uses these functions to determine whether a selector won't match any elements. If that's the case, the DOM doesn't even have to be touched.\n\n###And why is this a separate module?\n\nI'm trying to modularize `CSSselect` and most modules depend on these functions. IMHO, having a separate module is the easiest solution to this problem.","readmeFilename":"README.md"}