{"_id":"benv","_rev":"36-9a4c05bcdb535e8eb289009aa3fbcc55","name":"benv","description":"Stub a browser environment and test your client-side code in node.js.","dist-tags":{"latest":"3.3.0"},"versions":{"0.0.1":{"name":"benv","version":"0.0.1","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"_id":"benv@0.0.1","dist":{"shasum":"067e4f6623f099ca23357f5161a5de27b5ea5fb0","tarball":"https://registry.npmjs.org/benv/-/benv-0.0.1.tgz","integrity":"sha512-7KTjcBbs60WipcN8gV194y/5Axy9Wp7eqP3oJCzkP9/+S0JhwOMqwNxIpCI/2wusYI+34Ahsffvu+Dog9uyqnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfSqDksde6xVu46V4K5Apw4S/t3Pa5KD5K8gl4k1rbpQIgXXTlKkMoKTfA9bU04WtD1ySnG61KRviy0gagf3m4PW0="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.0.4":{"name":"benv","version":"0.0.4","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.0.4","dist":{"shasum":"9da6d872ad06b39c7fa274ba572dabbb28586592","tarball":"https://registry.npmjs.org/benv/-/benv-0.0.4.tgz","integrity":"sha512-jPvYBGV46l6zEQL8JjVIBebyAFcRs1yQ+5Jb+5FE+lD500yjXFLfjP/N6nW3UDuFPsV5LVOfqcE8MRhyGwTbCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3a/NG1L4tseKWebJeLemKHgnWB7Vb4WPIte9ovaFmOAiB0/xQjl6fIk2IbRA3DDa0V91uNOTsPrpQ+Xc9NKQKwIg=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.0.5":{"name":"benv","version":"0.0.5","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.0.5","dist":{"shasum":"6b2acd38d1aeaeb7f6689a08d7a829ac03b96695","tarball":"https://registry.npmjs.org/benv/-/benv-0.0.5.tgz","integrity":"sha512-0QTinsizKcbgAdcrOTwMFEtgMQpBC6IpP8kqqK/MLMsX/w0yY2TgTYD4lFsCZosDhFTY6EyZU2RcPjkgyDdOmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0bMZ/FisZJ0tW66mbR9QJvVH67aBCY+kbEX1inmG/HgIhAONZj/YsxRC+6IcmLBCjt0z1qNGmFG9hmA2elOa/4yYI"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.0.6":{"name":"benv","version":"0.0.6","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.0.6","dist":{"shasum":"fbcbf99f07fd7103058aabd893affbbf69976c04","tarball":"https://registry.npmjs.org/benv/-/benv-0.0.6.tgz","integrity":"sha512-rMauaG7k4/Tn/fxkfb1WexfFGdfMsxpHqsDpzpcur4jqxp8AyA2AAo/9SxVXDQ2bgEznFbcbeDc+IqDkeWRvGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGggdoLvZfMgP8QKv1zLoFtFkjZtKgkrTKwXi7NRnAiqAiEA+iurnmQfxbJA067S8txdnwFJdlZl8JBMg1cj23FJBcw="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.0":{"name":"benv","version":"0.1.0","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.1.0","dist":{"shasum":"399a991904803f58838d3a7a872e86e47cf1104c","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.0.tgz","integrity":"sha512-nQpl6IwkbD7N/9cngnIQdhCIHIhxisRdiL7hSQSQX2KPVBqrwgWZV+BNzSiHJkF48IUxmNb6Jm7FkA7B6TElPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdEAP9tMz7Fa4ymFs5fVe49ita2hAU+M2pHdAQCrJUkAiAwDKhOj9jcy4wov5FyJZ1fTBpVpyFaiFLrqKMRHLSrsQ=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.1":{"name":"benv","version":"0.1.1","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.1.1","dist":{"shasum":"7ac480c8d71df45b5ca47ee9a849660c4057e1b2","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.1.tgz","integrity":"sha512-Ma1xlLKWpXi6yijRQjEQHIJiZ6DcvS9qfZJyVOOIkvQgMmkvSLpht0UQTYO9M/b7x2BJxP+mvX/tlt81WMzrtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC5MM0K7ohfApfrq/v6sR3GEGQIXnrdo+PcuM4cbXRcgIgNDGLMGfhFWnPBKdbu3O0adZaS1beqwltJCiXjcskrv0="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.2":{"name":"benv","version":"0.1.2","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.1.2","dist":{"shasum":"012371a0c725a79a545647347863cca83fe7ab4f","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.2.tgz","integrity":"sha512-sPJB9HLt7OwVN2fJDYivbaX8GlW9QrXzmM47leGxT+f9J8jkesYO9dXAj5WHD200QE2/OpUJj2QGnHuCgTDDHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmk1KtCsFHzaq1a924+kkFq/SJ/2zgJUwhhtL9zYcBvAiAxlKA5nIEUhTYUCZubNbepV9yn7oRcOQ8CY+JyPNVhkQ=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.3":{"name":"benv","version":"0.1.3","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"_id":"benv@0.1.3","dist":{"shasum":"5201829a5fe8bd0d5c7782d0193d819dfc712c42","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.3.tgz","integrity":"sha512-RaylMZKlZpC2j46Drxaa9YaMzh2dYWOESUohEPc/zc3AhiA7067/dHkY3shD4UC6EQIWJmzkm7knq/uTscPvXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIZJDkArVr+nVYOxRQQrH/I2mc9uK0bNUlhWKIqVePyAiAULAFPnNG08/xhfnin3/H6ZPqyESd9yoVl72sY7ztsgw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.4":{"name":"benv","version":"0.1.4","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"homepage":"https://github.com/artsy/benv","_id":"benv@0.1.4","dist":{"shasum":"6043f5d8c522668f204fba2891fcd8fbbfba03ff","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.4.tgz","integrity":"sha512-FhOSI0Vq/jsvdhDpnqH+mMNuxGULSFdUUa2GbWNuAG+dr07XKLI94ftnOxyMVPtlzKliqToEeUKFjA0mnKFkKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXyLhZACWnzaCBFJDuF4gieLh+vUsznMmmPu8NJD+srwIhALdW3HcptF8g9Ct1JUktNZ6eFtZhIxApP0SdzF8NWDmz"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.5":{"name":"benv","version":"0.1.5","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"homepage":"https://github.com/artsy/benv","_id":"benv@0.1.5","dist":{"shasum":"61180b1796179e908ddd9090a9208a6a1c30bb94","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.5.tgz","integrity":"sha512-9468cxBSLnn3rrRSoV6yYJ2egC9hdVjaFDMZN+FJaYK3IHMNlQrPM8Z44T2Ik5bC76Gd+BklpoYMIBP1vIUPbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcUnojlGSGVeynbZaZ+pnugeD3ImfZUl8jPYW4rph6nAiEAnI5EyNcoo7esrzkTP1ISBx4PNVPoJtC8Jb5b3SGQO6I="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.6":{"name":"benv","version":"0.1.6","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"*","jade":"*"},"bugs":{"url":"https://github.com/artsy/benv/issues"},"homepage":"https://github.com/artsy/benv","_id":"benv@0.1.6","dist":{"shasum":"30f5ddb4291abed291b39800f8451bb7160939cc","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.6.tgz","integrity":"sha512-ioa8ngsruCpqxDjk8gm/b7CIPGlJyZ32bsA2jj5j5ijavh/9fchbrzK0zT5sOukxRoDcC8rsg9q8ahN3+Dwq9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHykIFnJA236Gl5hL1O4+XdsmoA1qZfeAmDAfnsG85wyAiEAwfQKfoAkaSQ5TYr7JvSbQPdqPQAYGPjP+a0xwAmQT1U="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}]},"0.1.7":{"name":"benv","version":"0.1.7","description":"Stub a browser environment and test your client-side code in node.js.","keywords":["browser","tests","benv","stub","jsdom"],"repository":{"type":"git","url":"http://github.com/artsy/benv.git"},"author":{"name":"Craig Spaeth","email":"craigspaeth@gmail.com","url":"http://craigspaeth.com"},"engines":{"node":">= 0.10.x"},"scripts":{"test":"make test"},"dependencies":{"jsdom-nogyp":"*","rewire":"*"},"devDependencies":{"mocha":"*","should":"^3.0.0","jade":"*"},"gitHead":"772b3375c03c46389ec629bb2ac6a903e38d8d00","bugs":{"url":"https://github.com/artsy/benv/issues"},"homepage":"https://github.com/artsy/benv","_id":"benv@0.1.7","_shasum":"e115acb5cc4f48f957a35e59338ab70c5ebfe236","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"e115acb5cc4f48f957a35e59338ab70c5ebfe236","tarball":"https://registry.npmjs.org/benv/-/benv-0.1.7.tgz","integrity":"sha512-WitcbBSr8oSvX078D66REk2WMTO9hXjRpxbPOUw+JfTPiWh33NhvpJ6If1Oht9Dbg4/ul1g/OCB2UBjB0ezIJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLAxrwY3Qddh3nF7CiRvwoAPhF8t1resmbGSUDfpnhMAIhAMZzw22duwR0WKZjq7nA72DAR5rojdpTWn10qop9IHRF"}]}},"1.0.0":{"name":"benv","version":"1.0.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 0.12.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":"4.x"},"devDependencies":{"mocha":"^2.2.1","should":"^3.3.2","jade":"^1.9.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"6cd460dbe7c85f1290e1f434a03d36ab906b8218","_id":"benv@1.0.0","_shasum":"f29102934beb13a461a3bc93ff579027aaf77aa8","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"f29102934beb13a461a3bc93ff579027aaf77aa8","tarball":"https://registry.npmjs.org/benv/-/benv-1.0.0.tgz","integrity":"sha512-hAxgz0SPCd3r3S9EBa+K+0FC+FDjmWX7KgAolICsiV2zEeJc8yAXtkuGm7BSPnGdfPR1dVAMSX/ThYEfn6aGYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVuOv9+32zizDvwf8mCg9WsCC1fC6xeVMai74oTMsKgAiEA0whY18sJJYWpQBkrT2twcs8M8QY9ZG/wot0xSSaDKjg="}]}},"1.1.0":{"name":"benv","version":"1.1.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 0.12.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":"3.x"},"devDependencies":{"mocha":"^2.2.1","should":"^3.3.2","jade":"^1.9.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"a22931ece17310f67fadd5f302c06acc77028219","_id":"benv@1.1.0","_shasum":"1c36b260c6f8cf6cf7e1641c042d463579bb6b8b","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"1c36b260c6f8cf6cf7e1641c042d463579bb6b8b","tarball":"https://registry.npmjs.org/benv/-/benv-1.1.0.tgz","integrity":"sha512-qMthOv6q5JgBLpPQSMg1eMejTMec6yy0eP5Xrrbd6egVc5b49wZ0yZfaaQccZiuq+00NAfzsOz5g3+PDdWkbqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDuqvqmnzKHbvvSNBsFY3dX/AlB+HMnZyNq36pXzmz2QIhAIAeMUNglhKw6AoR+77NwYyNoBjHwxqV1hA7AJAofgRy"}]}},"2.0.0":{"name":"benv","version":"2.0.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 0.12.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":"3.x"},"devDependencies":{"mocha":"^2.2.1","should":"^3.3.2","jade":"^1.9.2"},"scripts":{"test":"mocha -r should"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"32194b19bc0f3b70f5e8f37073eca7203876222e","_id":"benv@2.0.0","_shasum":"033256ae81032bb9dbf10abe9a58266da93e6b1d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"033256ae81032bb9dbf10abe9a58266da93e6b1d","tarball":"https://registry.npmjs.org/benv/-/benv-2.0.0.tgz","integrity":"sha512-P+CtZYUC5IDT5roUT+ZgEBABYA2aZvfXZIbQtaxLp0p3VJg21xk8lMWoRNlz65mathh+ZqMRbey96nOHmcCv2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFb6pUXFOBSxIGeRtf1DdCfgxJJsGqAXmHYpoQMQzDIRAiEApXv3GNar65w8rCGacJq/EIxhn2zNDqWspu5ZRzq20cU="}]}},"2.1.0":{"name":"benv","version":"2.1.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 0.12.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":"3.x"},"devDependencies":{"mocha":"^2.2.1","should":"^3.3.2","jade":"^1.9.2"},"scripts":{"test":"mocha -r should"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"4a254120f60a2bbf2cb74aed636f42ad2521029f","_id":"benv@2.1.0","_shasum":"232ca69492a11f8b08cce7d0fedbfe559ba18eaf","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"232ca69492a11f8b08cce7d0fedbfe559ba18eaf","tarball":"https://registry.npmjs.org/benv/-/benv-2.1.0.tgz","integrity":"sha512-w3dYNb8smlCbC8h3otTv9a+xV9DS3tgS+T047n3SgI+luK0f0E/T3ODv1RfN9zemgu5ynEEPH2CUWCEr/9aLPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAN5bl5fNQWIhaoXy3tfQxIHNrwAvD7m3KY0UYdGIQrwIgXt1EXB6TZshhIqrrnTclgsQZ0QsJygYz24ujWC3ytN0="}]}},"3.0.0":{"name":"benv","version":"3.0.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 4.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":">= 4.0"},"devDependencies":{"mocha":"^2.2.1","should":"^3.3.2","jade":"^1.9.2"},"scripts":{"test":"mocha -r should"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"f9764fc6642d324cdce97647511e0e8eef021b0d","_id":"benv@3.0.0","_shasum":"f0b0a043fd2f4764a8730c848ce29365dc261a24","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"f0b0a043fd2f4764a8730c848ce29365dc261a24","tarball":"https://registry.npmjs.org/benv/-/benv-3.0.0.tgz","integrity":"sha512-b49ruFl8ici3ge0q5f+Vrv/xNVriTgO5Ff3WUFbvuQU1P2NvI+GsV7fJY7gaKXH512HQetU2jfMaeUq8dBK+zA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICFDOquG3hxMeEtYQkecqymEcy6C9xqyR545t2jS5gXmAiBbfshpacL/3UegQ1N99SCMvneuJ2EStRyyEg8sbsKrjw=="}]}},"3.1.0":{"name":"benv","version":"3.1.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 4.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":">= 4.0"},"devDependencies":{"mocha":"^2.2.1","should":"^3.3.2","jade":"^1.9.2"},"scripts":{"test":"mocha -r should"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"6a3c389d340a9a944c7d33e83f088e4dd14f3134","_id":"benv@3.1.0","_shasum":"4388b172e9ba58475fbf0bec3b2fd1fe4c852f4c","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"dist":{"shasum":"4388b172e9ba58475fbf0bec3b2fd1fe4c852f4c","tarball":"https://registry.npmjs.org/benv/-/benv-3.1.0.tgz","integrity":"sha512-Qm5IcXpmUmJRiL7EEy198+LCMJ8XO0K9XRuBLN6YmoBwTfIWAbhiRlD2jR08esnv7+sKOGoQ2E5Prmb6N067rg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqyHGTK1wzH3I3LPF4nlEzxTVKbDlH9SBvF21IhGJd+AiANkeED95iqm0BYVksWx/TvOzhhCcZeXmb+OAU/exYGIA=="}]},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/benv-3.1.0.tgz_1474148019080_0.3906747961882502"}},"3.2.0":{"name":"benv","version":"3.2.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 4.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":">= 4.0"},"devDependencies":{"jade":"^1.9.2","mocha":"^2.2.1","pug":"^2.0.0-beta6","should":"^3.3.2"},"scripts":{"test":"mocha -r should"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"6857a85b0db742f403279d61a4ad5e8f77c87ccf","_id":"benv@3.2.0","_shasum":"87e8b4d277ef47db4ea6453739c92526cfb0527d","_from":".","_npmVersion":"4.0.1","_nodeVersion":"6.9.0","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"87e8b4d277ef47db4ea6453739c92526cfb0527d","tarball":"https://registry.npmjs.org/benv/-/benv-3.2.0.tgz","integrity":"sha512-9abix2YVQlz1CerSXIzZhgupjvtTOnojqccjJN7XfEd2zh+BaTNzk4C1CyFIZ7LWDAuy0JZx1f6vUgbV7INJQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDuOH5qCi9Y8njMVmyoGn6msmoiUG2cNiNawHD35clbAiEA1VEhidl7g9qJ2HQNmfy1+K/COR8nBHEefpZvuh02BsE="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/benv-3.2.0.tgz_1481839161185_0.5088582767639309"}},"3.3.0":{"name":"benv","version":"3.3.0","description":"Stub a browser environment and test your client-side code in node.js.","main":"index.js","engines":{"node":">= 4.0"},"directories":{"test":"test"},"dependencies":{"rewire":"^2.3.1","jsdom":">= 10.0"},"devDependencies":{"jade":"^1.9.2","mocha":"^2.2.1","pug":"^2.0.0-beta6","should":"^3.3.2"},"scripts":{"test":"mocha -r should"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"keywords":["browser","tests","benv","stub","jsdom"],"author":{"name":"Craig Spaeth"},"license":"MIT","bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"homepage":"https://github.com/craigspaeth/benv","gitHead":"47e7288fc086e1a63864e39cc6f735a86c93df18","_id":"benv@3.3.0","_shasum":"7375ec01a95a00033eb980844883662852822435","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"craigspaeth","email":"craigspaeth@gmail.com"},"maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"dist":{"shasum":"7375ec01a95a00033eb980844883662852822435","tarball":"https://registry.npmjs.org/benv/-/benv-3.3.0.tgz","integrity":"sha512-5eq2WZ+tZsLLP+Zt7Z1jLaQxGfSsU5tTPKl5knv7uuDSJBhy//H8TIDLPynFLyUBoDqDXptVF8ODKIpA0TzziA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXmd/ewk1EhK/h20CyD4JsfF8h1AcAyCVF4WfaDzlOZAiB8ijXM3+bHwH7mFOnOdSeh82pP3tAT/+uBgMK8wBqg8Q=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/benv-3.3.0.tgz_1493731309534_0.7958396563772112"}}},"readme":"# benv\n\nStub a browser environment and test your client-side code in node.js.\n\n## Example\n\nExample using [mocha](http://visionmedia.github.io/mocha/) and [should](https://github.com/visionmedia/should.js/).\n\nGiven some client-side code\n\n**./client/app.js**\n````javascript\n$(function() {\n  $('body').html('Wat!?');\n});\n````\n\nSetup, declare global dependencies, and test in node.js.\n\n**./test/client/app.js**\n````javascript\nvar benv = require('benv');\n\nbeforeEach(function(done) {\n  benv.setup(function() {\n    benv.expose({\n      $: benv.require('../client/vendor/zepto.js', 'Zepto')\n    });\n    done();\n  });\n});\n\nafterEach(function() {\n  benv.teardown();\n});\n\ndescribe('app.js', function() {\n  it('renders Wat', function() {\n    require('../client/app.js');\n    $('body').html().should.include('Wat!?');\n  });\n});\n\n````\n\n## Why\n\nUnit testing client side code in a browser is slow and hard to setup with [CI](http://en.wikipedia.org/wiki/Continuous_integration). Wouldn't it be nice if we could just run it along-side our server-side tests? Benv is a library of test helpers that make it easy to require your client-side code in node.js and test it like any other node module.\n\nSee [this blog post](http://artsy.github.io/blog/2013/06/14/writing-headless-backbone-tests-with-node-dot-js/) for details & inspiration.\n\n## API\n\n### benv.setup(callback, options)\n\nExposes a stubbed browser API into the node.js global namespace so the current process can act like a browser environment. The optional options are passed to jsdom.env. In particular, if your code makes ajax requests then you must pass `{url:'http://hostname:port'}` to avoid CORS errors.\n\n### benv.expose(globals)\n\nPass in a hash of common global client-side dependencies. For instance you may have a [Backbone](https://github.com/jashkenas/backbone) app that has a global `App` namespace and uses jQuery. This should be run after `benv.setup` b/c a lot of libraries assume the `window` object is already global.\n\n````javascript\nbenv.expose({\n  _: require('underscore'),\n  jQuery: require('jquery'),\n  $: require('jquery'),\n  Backbone: require('backbone'),\n  App: {}\n})\n```\n\n### benv.teardown(clearDOM = false)\n\nClean up the globals exposed by `setup` and `expose` so other tests can run without being harmed.\n\nUse `benv.teardown(true)` to remove references to `window`, `document`, and other DOM globals. This isn't enabled by default because a lot of libraries cache references to DOM globals and don't work so nicely when trying to clear globals and re-require these libs.\n\n### benv.require(filename, globalVarName)\n\nFor non-commonjs wrapped libraries, benv.require will export the global variable that is generally attached to window. For instance [zepto](https://github.com/madrobby/zepto) doesn't adopt any module pattern but it does create a global `Zepto` variable.\n\ne.g.\n\n````javascript\nvar $ = benv.require('./client/vendor/zepto.js', 'Zepto');\n````\n\n### benv.render(filename, data, callback)\n\nRenders the html in a body tag of a template. Pass in the template's filename along with any data passed into the template. Benv is backed by jsdom and `benv.render` will remove any script tags so as to not accidentally run external javascript.\n\ne.g.\n\n````javascript\nbenv.render('./views/artwork.jade', {\n  artwork: new Artwork({ title: 'Andy Warhol, Flowers' })\n}, function() {\n  $('body').html().should.include('Andy Warhol, Flowers');\n});\n````\n\nCurrently only supports [.jade](https://github.com/pugjs/pug/tree/v1.x.x) and [.pug](https://github.com/pugjs/pug) templates, but please contribute others :)\n\n### benv.requireWithJadeify(filename, varNames)\n\nFor those using [jadeify](https://github.com/OliverJAsh/node-jadeify2) when requiring client-side code that uses jadeify it will throw an error because `require('template.jade')` isn't valid node code.\n\nIf you defer your jade requires to run time e.g. `var artworkTemplate = function() { return require('foo.jade').apply(this, arguments); }` and use `benv.requireWithJadeify('../client/artwork.js', ['artworkTemplate'])` you can avoid this error and test the jadeified templates in node again.\n\n### benv.requireWithPugify(filename, varNames)\n\nFor those using [pugify](https://github.com/sidorares/pugify) when requiring client-side code that uses pugify it will throw an error because `require('template.pug')` isn't valid node code.\n\nIf you defer your pug requires to run time e.g. `var artworkTemplate = function() { return require('foo.pug').apply(this, arguments); }` and use `benv.requireWithPugify('../client/artwork.js', ['artworkTemplate'])` you can avoid this error and test the pugified templates in node again.\n\n## Contributing\n\nPlease fork the project and submit a pull request with tests. Install node modules `npm install` and run tests with `npm test`.\n\n## License\n\nMIT\n","maintainers":[{"name":"craigspaeth","email":"craigspaeth@gmail.com"}],"time":{"modified":"2022-06-13T04:32:07.070Z","created":"2013-09-26T17:49:45.087Z","0.0.1":"2013-09-26T17:49:45.897Z","0.0.4":"2013-09-26T21:35:55.555Z","0.0.5":"2013-10-21T21:55:07.128Z","0.0.6":"2013-11-01T22:23:07.579Z","0.1.0":"2013-11-08T23:42:21.463Z","0.1.1":"2013-11-09T00:31:59.338Z","0.1.2":"2013-12-10T17:56:09.834Z","0.1.3":"2014-01-03T22:29:12.685Z","0.1.4":"2014-03-04T20:28:04.352Z","0.1.5":"2014-04-04T16:45:31.693Z","0.1.6":"2014-07-21T19:28:54.207Z","0.1.7":"2015-02-02T21:23:15.888Z","1.0.0":"2015-03-24T20:07:23.102Z","1.1.0":"2015-04-13T16:00:02.230Z","2.0.0":"2015-09-28T21:20:25.865Z","2.1.0":"2015-10-12T16:25:34.726Z","3.0.0":"2015-10-14T18:53:05.035Z","3.1.0":"2016-09-17T21:33:40.959Z","3.2.0":"2016-12-15T21:59:21.895Z","3.3.0":"2017-05-02T13:21:50.116Z"},"author":{"name":"Craig Spaeth"},"repository":{"type":"git","url":"git+https://github.com/craigspaeth/benv.git"},"homepage":"https://github.com/craigspaeth/benv","keywords":["browser","tests","benv","stub","jsdom"],"bugs":{"url":"https://github.com/craigspaeth/benv/issues"},"readmeFilename":"README.md","users":{"majgis":true},"license":"MIT"}