{"_id":"gleak","_rev":"36-f92cb12a303308fb2caf000d21cbf818","name":"gleak","description":"Node global variable leak detector","dist-tags":{"latest":"0.5.0"},"versions":{"0.0.1":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.0.1","repository":{"url":""},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":"~v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.0.1","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"2289ea6533f1f10d65fbaaa02c1bcb3f2bd5011e","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.0.1.tgz","integrity":"sha512-mMsa676l5cQz3xuEFTOAwTbwftOgtjeCqZ2jyT9sLcojd0xGNbXGkYr6ZeWZjpSamn8mdsoV+2o+dD4dE0LCTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDTk+RkMjKrQU+g6hL09naDz6GBgxFk+2guuGOcD4djuAiEA8DLD344K/0QnRkLJ5YKHAkofq3fbrKwVhT64OTyro6k="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{}},"0.0.2":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.0.2","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":"~v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.0.2","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"3e2123a6df095ca7330c2bf29a1e1ead19e4dd92","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.0.2.tgz","integrity":"sha512-t4LJXW6GTEhfKWZQhX7ttVbSAAoowKLfvLmQ5WpMOHBiggJ1KKZf1tnu0PBopk3vedWw76H4iaZISS6dDfV7Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGWFwBADtn1Nn59bn99Jg8dfPnWUu+CAusm2MMewsNkBAiEAhMAHpDFgAZpN+iH7CudJw92s2HTrHEMwx3QKxjC9DOM="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{}},"0.1.0":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.1.0","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":"~v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.1.0","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"0e12badfe92511218ecdc18908b8c47888d7b64c","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.1.0.tgz","integrity":"sha512-JQ35vEDtNbuLYXSQ8wFnt8+xji3qjS2MCPcE/p0NGwkMR1ar5akSPHXuAM7S3Vr52FFrFjQPzpNNKRiqcuaW/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxEmlA/d6hBEb+jzPuF6FfJHxL+MgPs0qjUmKlu8G/CAiA4azhBS46t1Z1pOWjee9hM02MZx8T29RMVfrXJKzOONQ=="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{}},"0.1.1":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.1.1","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":"~v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.1.1","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"0759940427f996b2c8245ad1ce2096a196cb4611","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.1.1.tgz","integrity":"sha512-XBzA+akqu2kWksuyxk0Rx+q9HaKo2zG79BvsKgnVk7ixjBdhVXRFNzkelDvrwJKZALa0SsQVNsM7wpl+Ii+Twg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBG6lq0WPD4OM9EVR0s3iOdyPLrfVFoH3h0OphmRYT04AiEA23y37b3oRZYY6ABOLm/jDOjHDAWSaIMayCrIscC8+1o="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{}},"0.1.2":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.1.2","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":"~v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.1.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.1.2","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"43a4b58e7f4d7fc6cb83f160b5860957516f6d7c","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.1.2.tgz","integrity":"sha512-nVbwUqF5D9NVl23lkM/aQZfROtUt25K2tN8Ae13cMYt29890Mru1ZFsfNcSviUbRsblX6TcCAHPLCyrxOnlRuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIALh7vu3Ofm61H5vdKbd7Km1RuZwFrCgFvBTM+fEb3+CAiEAhLKIwpisqkKH54V+DnR+IJOqOOPgBZHCTp0tk1w86rI="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"directories":{}},"0.1.3":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.1.3","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.1.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.1.3","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"bed46299a1849adde6ab1aeb9a604f694b9fa9a4","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.1.3.tgz","integrity":"sha512-5wMqKucrl6jzD0zrQqnzlB2WzqsLl0iEcBfvKBsBlFjrpaVYas49soajyH+u/fI1mKpa/ASFM8aDuhjI/l4HSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK5gMDne6pry7VFB/ktdCMK4rqTUyj/un6Zc4Zlcfq5gIhAIXJM2zbyx7f7BrL34bVEXpx7fxH8Elj2ai46jl4VT6V"}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.2.0":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.2.0","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=v0.4.0"},"dependencies":{},"devDependencies":{"express":"~v2.0.0","expresso":"v0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.2.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.2.0","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"c6fb550cca4aec27de1def599f75dea6a2d1c592","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.2.0.tgz","integrity":"sha512-1m9/GH57VP9FUwx3KZmSV/j3KsaHRGOIZfyHmcMWbuk6nvoC7Ejm/OmCjOscKJo+rYcN9TQc0sz0lZR98pPjjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWIiWVP2HgYjWl2RXMBeG7qGvyyprPn7gn9Xf+jgP0IwIgS6ArITSH2pKLtewraokI1Ga2Cmlp0E8POWI6eanW/bs="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.2.1":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.2.1","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.4.0"},"dependencies":{},"devDependencies":{"express":">=2.0.0","expresso":"0.7.5"},"_npmJsonOpts":{"file":"/home/aaron/.npm/gleak/0.2.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"gleak@0.2.1","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"35362835f3067b137d821df6e324c013e4aa3a11","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.2.1.tgz","integrity":"sha512-LEb1tc0andp11DObofZDJG+lPQumjTgpSiqOLivAX8v1SpEQHqw/0WtXBEMroBfUVoT+r2AAXyNSURRluRSPJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESltCGbNRE8vhiCopFPHHD+C5BWpUwysoeCF3bQZdfCAiEA3w1LLfoOacnAMIFHt75cHEvFbM2SR0kzYpzmznW5DRE="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.2.2":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.2.2","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.4.1"},"dependencies":{},"devDependencies":{"express":">=2.0.0","expresso":"0.7.5"},"_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"_id":"gleak@0.2.2","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"185fd140200d97509e737fb4edf78d614c7f8033","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.2.2.tgz","integrity":"sha512-KFkPJuN7knxnIwcaD6Nuh/SAn9rs8zWWPxR3AH7DkLw5syBOJNhVLCow+3KSb1ChALuyfsGQAKdz++JGPzncMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElheWzNKjO5RVo6v/s8/j5fZAQIjRR96T0kPfaiJWvpAiEAn5TCB3jV6idxboY+chRt7DltvaNpNAQ2ZOR2VMiCzAI="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.2.3":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.2.3","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.4.1"},"dependencies":{},"devDependencies":{"express":">=2.0.0","expresso":"0.9.2"},"_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"_id":"gleak@0.2.3","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"4c59915c09518aa946572b8850d1142824635376","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.2.3.tgz","integrity":"sha512-t09dppqsKp0ZzAM0qMMwjgWL/qlDfYxIT7jP1guJkNnmX4OAVCmRGA5uk0Iol5VbC3kyyhctNvmRh7655Pzocg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSnxrdGRlM5d6P2cSBCgSiY0apgshNfr1yL+EgJ8phRAiEAlsP5bRKKOaw/kMbdXT1SeUq7fpWYa1a2J1dV0+Iq/eE="}]},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.2.4":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.2.4","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.4.1"},"dependencies":{},"devDependencies":{"express":">=2.0.0","mocha":"*"},"_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"_id":"gleak@0.2.4","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"690277f13e29faa33bf61d875f3557b2ca77400d","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.2.4.tgz","integrity":"sha512-K1BlHKqWmxsHPWvTsbYv1qeCwGpskXGHT5K+2pjtWt9l5bAGjqRv+6PSm8XNhIQnlsnQvxu4h5zs1Q5wMmBn+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyseMvECRSggg/WpK3sn4JeHYhwcf2p2wUyXz3NJnf0AiB8FsdPDHVrSdVqGVhHGM1BmbX7XGKAZ3C1rGWm+tWKhw=="}]},"readme":"# Gleak\n\nGlobal variable leak detection for Node.js [![Build Status](https://secure.travis-ci.org/aheckmann/gleak.png)](http://travis-ci.org/aheckmann/gleak)\n\n    var detector = require('gleak')();\n\n    detector.detect().forEach(function (name) {\n      console.warn('found global leak: %s', name);\n    });\n\nGlobal variable leaks in javascript can bite you when you least\nexpect it. Do something about it now and run this module after\nyour tests, after HTTP requests, and after you brush your teeth.\n\n## Detectable\n\nAs demonstrated, gleak comes with the `detect` method which returns\nan array of all found variable leaks.\n\nOften times we want to run the detector many times, progressively\nchecking for any new leaks that occurred since we last checked. In\nthis scenario we can utilize the `detectNew` method.\n\n    var detector = require('gleak')();\n\n    x = 1;\n    detector.detectNew(); // ['x']\n    detector.detectNew(); // []\n    y = 3;\n    detector.detectNew(); // ['y']\n\n## Configurable:\n\nGleak comes configured for Node.js and will ignore built-ins by default\nbut you can configure it however your like:\n\n    var gleak = require('gleak')();\n    gleak.ignore(app, db);\n\nThe `gleak.ignore` method allows us to add globals we want to ignore\nwhile safely ignoring duplicates.\n\n`gleak.whitelist` is an array that holds all globals we are ignoring.\nYou can push to it or blow it away completely with your own list too.\n\n    var gleak = require('gleak')();\n    gleak.whitelist = [dnode, cluster];\n\nChanges to your whitelists do not impact any global settings. For example:\n\n    var gleak = require('gleak');\n    var g1 = gleak();\n    var g2 = gleak();\n\n    g1.ignore(myglobal);\n    g2.whitelist.indexOf(myglobal) === -1;\n\n`g2` does not inherit changes to `g1`s whitelist.\n\n## Printable\n\nIf you don't want anything fancy and want to quickly dump all\nglobal leaks to your console, just call `print()`.\n\n    var gleak = require('gleak')();\n    gleak.print(); // prints \"Gleak!: leakedVarName\"\n\n## Expressable\n\nWe might want to print leaked variables to our console after each\nHTTP request. This is especially helpful during development.\nTo accomplish this we can utilize the bundled [express](http://expressjs.com) middleware:\n\n    var app = express.createServer();\n    app.use(gleak.middleware());\n\nWhat if we want to output to a different stream than stderr?\n\n    app.use(gleak.middleware(stream));\n\nHow about customized logging formats?\n\n    app.use(gleak.middleware('\\x1b[31mLeak!\\x1b[0m %s'));\n\nCombining formats and streams?\n\n    app.use(gleak.middleware(stream, '\\x1b[31mLeak!\\x1b[0m %s'));\n\n## Installable\n\n  npm install gleak\n\n### Node version\nCompatible with Node >=v0.4 <0.5.0\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 [Aaron Heckmann](aaron.heckmann+github@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.3.0":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.3.0","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.4.1"},"dependencies":{},"devDependencies":{"express":">=2.0.0","mocha":"*"},"readme":"# Gleak\n\nGlobal variable leak detection for Node.js [![Build Status](https://secure.travis-ci.org/aheckmann/gleak.png)](http://travis-ci.org/aheckmann/gleak)\n\n    var detector = require('gleak')();\n\n    detector.detect().forEach(function (name) {\n      console.warn('found global leak: %s', name);\n    });\n\nGlobal variable leaks in javascript can bite you when you least\nexpect it. Do something about it now and run this module after\nyour tests, after HTTP requests, and after you brush your teeth.\n\n## Detectable\n\nAs demonstrated, gleak comes with the `detect` method which returns\nan array of all found variable leaks.\n\nOften times we want to run the detector many times, progressively\nchecking for any new leaks that occurred since we last checked. In\nthis scenario we can utilize the `detectNew` method.\n\n    var detector = require('gleak')();\n\n    x = 1;\n    detector.detectNew(); // ['x']\n    detector.detectNew(); // []\n    y = 3;\n    detector.detectNew(); // ['y']\n\n## Configurable:\n\nGleak comes configured for Node.js and will ignore built-ins by default\nbut you can configure it however your like:\n\n    var gleak = require('gleak')();\n    gleak.ignore(app, db);\n\nThe `gleak.ignore` method allows us to add globals we want to ignore\nwhile safely ignoring duplicates.\n\n`gleak.whitelist` is an array that holds all globals we are ignoring.\nYou can push to it or blow it away completely with your own list too.\n\n    var gleak = require('gleak')();\n    gleak.whitelist = [dnode, cluster];\n\nChanges to your whitelists do not impact any global settings. For example:\n\n    var gleak = require('gleak');\n    var g1 = gleak();\n    var g2 = gleak();\n\n    g1.ignore(myglobal);\n    g2.whitelist.indexOf(myglobal) === -1;\n\n`g2` does not inherit changes to `g1`s whitelist.\n\n## Printable\n\nIf you don't want anything fancy and want to quickly dump all\nglobal leaks to your console, just call `print()`.\n\n    var gleak = require('gleak')();\n    gleak.print(); // prints \"Gleak!: leakedVarName\"\n\n## Expressable\n\nWe might want to print leaked variables to our console after each\nHTTP request. This is especially helpful during development.\nTo accomplish this we can utilize the bundled [express](http://expressjs.com) middleware:\n\n    var app = express.createServer();\n    app.use(gleak.middleware());\n\nWhat if we want to output to a different stream than stderr?\n\n    app.use(gleak.middleware(stream));\n\nHow about customized logging formats?\n\n    app.use(gleak.middleware('\\x1b[31mLeak!\\x1b[0m %s'));\n\nCombining formats and streams?\n\n    app.use(gleak.middleware(stream, '\\x1b[31mLeak!\\x1b[0m %s'));\n\n## Installable\n\n  npm install gleak\n\n### Node version\nCompatible with Node >=v0.4 <0.5.0\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 [Aaron Heckmann](aaron.heckmann+github@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"gleak@0.3.0","dist":{"shasum":"7ae63905a25ad1ca7502e5aec0cbd91cb64f21a5","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.3.0.tgz","integrity":"sha512-d0OvwWcpSEB1XrohVdmG/7rYXnqIYJa235lBImLYCU47tb9yyvLCDdgc0Dq61VcDxNXdtrPerqaFsNPA+q0mkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdfp7GmDEv6lahn0osZgv/yJ7dlqsGYmEidkg3BnxRCAIgD/JkbDocC5iBp545iykZ9Kr7nZkduwljz0B3WIUNzcw="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.4.0":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.4.0","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"express":">=2.0.0"},"readme":"# Gleak\n\nGlobal variable leak detection for Node.js [![Build Status](https://secure.travis-ci.org/aheckmann/gleak.png)](http://travis-ci.org/aheckmann/gleak)\n\n    var detector = require('gleak')();\n\n    detector.detect().forEach(function (name) {\n      console.warn('found global leak: %s', name);\n    });\n\nGlobal variable leaks in javascript can bite you when you least\nexpect it. Do something about it now and run this module after\nyour tests, after HTTP requests, and after you brush your teeth.\n\n## Detectable\n\nAs demonstrated, gleak comes with the `detect` method which returns\nan array of all found variable leaks.\n\nOften times we want to run the detector many times, progressively\nchecking for any new leaks that occurred since we last checked. In\nthis scenario we can utilize the `detectNew` method.\n\n    var detector = require('gleak')();\n\n    x = 1;\n    detector.detectNew(); // ['x']\n    detector.detectNew(); // []\n    y = 3;\n    detector.detectNew(); // ['y']\n\n## Configurable:\n\nGleak comes configured for Node.js and will ignore built-ins by default\nbut you can configure it however your like:\n\n    var gleak = require('gleak')();\n    gleak.ignore(app, db);\n\nThe `gleak.ignore` method allows us to add globals we want to ignore\nwhile safely ignoring duplicates.\n\n`gleak.whitelist` is an array that holds all globals we are ignoring.\nYou can push to it or blow it away completely with your own list too.\n\n    var gleak = require('gleak')();\n    gleak.whitelist = [dnode, cluster];\n\nChanges to your whitelists do not impact any global settings. For example:\n\n    var gleak = require('gleak');\n    var g1 = gleak();\n    var g2 = gleak();\n\n    g1.ignore(myglobal);\n    g2.whitelist.indexOf(myglobal) === -1;\n\n`g2` does not inherit changes to `g1`s whitelist.\n\n## Printable\n\nIf you don't want anything fancy and want to quickly dump all\nglobal leaks to your console, just call `print()`.\n\n    var gleak = require('gleak')();\n    gleak.print(); // prints \"Gleak!: leakedVarName\"\n\n## Expressable\n\nWe might want to print leaked variables to our console after each\nHTTP request. This is especially helpful during development.\nTo accomplish this we can utilize the bundled [express](http://expressjs.com) middleware:\n\n    var app = express.createServer();\n    app.use(gleak.middleware());\n\nWhat if we want to output to a different stream than stderr?\n\n    app.use(gleak.middleware(stream));\n\nHow about customized logging formats?\n\n    app.use(gleak.middleware('\\x1b[31mLeak!\\x1b[0m %s'));\n\nCombining formats and streams?\n\n    app.use(gleak.middleware(stream, '\\x1b[31mLeak!\\x1b[0m %s'));\n\n## Installable\n\n    npm install gleak\n\n### Node version\nCompatible with Node >=0.6\n\nNode >= 0.4.1 probably still works too but the tests no longer confirm it.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 [Aaron Heckmann](aaron.heckmann+github@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"gleak@0.4.0","dist":{"shasum":"db9a0c981e6203f451f4b7d34b3545ed4dfbf9ec","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.4.0.tgz","integrity":"sha512-2S2eY0Fk5cI1Iye2aYYddmqVREn9mU3F9emYXm9FNDugfcR8/gX7o47hEzplUJz5N8CewZ38Kw/WNy4HSh/1Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXVP9Itz/s4Nib5g+MzvDwBnwOEPyjktCiEwahqOpEbAiEAms6ebz0g5XOr8UpVAnZYUZhBcYUAD5Ap1PKxPsDkxhg="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]},"0.5.0":{"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"name":"gleak","description":"Node global variable leak detector","version":"0.5.0","repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"main":"./index.js","scripts":{"test":"make test"},"engines":{"node":">=0.6"},"dependencies":{},"devDependencies":{"express":">=2.0.0"},"readme":"# Gleak\n\nGlobal variable leak detection for Node.js [![Build Status](https://travis-ci.org/aheckmann/gleak.png?branch=master)](https://travis-ci.org/aheckmann/gleak)\n\n    var detector = require('gleak')();\n\n    detector.detect().forEach(function (name) {\n      console.warn('found global leak: %s', name);\n    });\n\nGlobal variable leaks in javascript can bite you when you least\nexpect it. Do something about it now and run this module after\nyour tests, after HTTP requests, and after you brush your teeth.\n\n## Detectable\n\nAs demonstrated, gleak comes with the `detect` method which returns\nan array of all found variable leaks.\n\nOften times we want to run the detector many times, progressively\nchecking for any new leaks that occurred since we last checked. In\nthis scenario we can utilize the `detectNew` method.\n\n    var detector = require('gleak')();\n\n    x = 1;\n    detector.detectNew(); // ['x']\n    detector.detectNew(); // []\n    y = 3;\n    detector.detectNew(); // ['y']\n\n## Configurable:\n\nGleak comes configured for Node.js and will ignore built-ins by default\nbut you can configure it however your like:\n\n    var gleak = require('gleak')();\n    gleak.ignore(app, db);\n\nThe `gleak.ignore` method allows us to add globals we want to ignore\nwhile safely ignoring duplicates.\n\n`gleak.whitelist` is an array that holds all globals we are ignoring.\nYou can push to it or blow it away completely with your own list too.\n\n    var gleak = require('gleak')();\n    gleak.whitelist = [dnode, cluster];\n\nChanges to your whitelists do not impact any global settings. For example:\n\n    var gleak = require('gleak');\n    var g1 = gleak();\n    var g2 = gleak();\n\n    g1.ignore(myglobal);\n    g2.whitelist.indexOf(myglobal) === -1;\n\n`g2` does not inherit changes to `g1`s whitelist.\n\n## Printable\n\nIf you don't want anything fancy and want to quickly dump all\nglobal leaks to your console, just call `print()`.\n\n    var gleak = require('gleak')();\n    gleak.print(); // prints \"Gleak!: leakedVarName\"\n\n## Expressable\n\nWe might want to print leaked variables to our console after each\nHTTP request. This is especially helpful during development.\nTo accomplish this we can utilize the bundled [express](http://expressjs.com) middleware:\n\n    var app = express.createServer();\n    app.use(gleak.middleware());\n\nWhat if we want to output to a different stream than stderr?\n\n    app.use(gleak.middleware(stream));\n\nHow about customized logging formats?\n\n    app.use(gleak.middleware('\\x1b[31mLeak!\\x1b[0m %s'));\n\nCombining formats and streams?\n\n    app.use(gleak.middleware(stream, '\\x1b[31mLeak!\\x1b[0m %s'));\n\n## Installable\n\n    npm install gleak\n\n### Node version\nCompatible with Node >=0.6\n\nNode >= 0.4.1 probably still works too but the tests no longer confirm it.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 [Aaron Heckmann](aaron.heckmann+github@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aheckmann/gleak/issues"},"_id":"gleak@0.5.0","dist":{"shasum":"9cd7694be50d6dbeb842021ed8160814c51faddf","tarball":"https://registry.npmjs.org/gleak/-/gleak-0.5.0.tgz","integrity":"sha512-rAE996EYa1PV08ZInW0fedUdwtL/psYpMI37+5WfOtLsDqAgvtvenQOeH7GQ3+Oj1+MdG+b81jC0DIii7+IyeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC76rXoO7OaOvcNdIBP6ePCMMpJRvYgW5oab9ig+keKOAIhAK6A61VatwLwEhscbarkFLfYk1snQWsM3o69GTvw26VL"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"aaron","email":"aaron.heckmann@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}]}},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"}],"time":{"modified":"2022-06-18T12:49:58.359Z","created":"2011-09-03T04:29:38.245Z","0.0.1":"2011-09-03T04:29:38.835Z","0.0.2":"2011-09-07T01:58:57.966Z","0.1.0":"2011-09-07T03:31:46.698Z","0.1.1":"2011-09-07T12:51:57.001Z","0.1.2":"2011-09-08T14:17:21.847Z","0.1.3":"2011-09-22T17:31:19.549Z","0.2.0":"2011-10-12T00:03:10.541Z","0.2.1":"2011-10-18T14:06:43.497Z","0.2.2":"2011-11-23T15:35:01.063Z","0.2.3":"2012-01-27T06:11:16.440Z","0.2.4":"2012-06-22T17:36:17.780Z","0.3.0":"2013-04-06T15:51:54.745Z","0.4.0":"2013-04-06T18:26:05.387Z","0.5.0":"2013-09-12T23:04:22.866Z"},"author":{"name":"Aaron Heckmann","email":"aaron.heckmann+github@gmail.com"},"repository":{"type":"git","url":"git://github.com/aheckmann/gleak.git"},"users":{"aaron":true}}