{"_id":"boolbase","_rev":"45418","name":"boolbase","description":"two functions: One that returns true, one that returns false","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"feedic","email":""},{"name":"npm:feedic","email":""}],"time":{"modified":"2023-03-20T08:17:12.000Z","created":"2014-02-15T14:44:50.620Z","1.0.0":"2014-02-15T14:44:50.620Z"},"users":{},"author":{"name":"Felix Boehm","email":"me@feedic.com"},"repository":{"type":"git","url":"https://github.com/fb55/boolbase"},"versions":{"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://name.csiicloud.com:7001/boolbase/download/boolbase-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"feedic","email":"me@feedic.com"},"maintainers":[{"name":"feedic","email":""},{"name":"npm:feedic","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###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.","_attachments":{},"homepage":"https://github.com/fb55/boolbase","bugs":{"url":"https://github.com/fb55/boolbase/issues"},"license":"ISC"}