{"_id":"wipe-node-cache","_rev":"11-508159b34cc384f10133d27d891fa2be","name":"wipe-node-cache","description":"Wipes node.js cache in a controlled way.","dist-tags":{"latest":"2.1.2"},"versions":{"1.0.0":{"name":"wipe-node-cache","version":"1.0.0","description":"Wipes node.js cache in a controled way.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"31a9f55c0363d7a946e0176ebebc9d97248b9800","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@1.0.0","_shasum":"df00b6743d59399418f7baeeae7cc483f8c425aa","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"shasum":"df00b6743d59399418f7baeeae7cc483f8c425aa","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-1.0.0.tgz","integrity":"sha512-iiyNmM7Wx8KJLtsQgFSxx5LLUcgE6kBIHO0rDdDS//cO++fnXizb0ylN6YJyYs+dqNTtFiwagDIBwJmKVgRJiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCp43U0Xid784/vFiHYmjLAABV6L5a6E3wcm4QyUfKogQIhANLWu5iljukGj1XTBPS0+ljE4kGq390eYYEDKqoMKyE1"}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/wipe-node-cache-1.0.0.tgz_1483051324082_0.6829815348610282"},"directories":{}},"1.0.1":{"name":"wipe-node-cache","version":"1.0.1","description":"Wipes node.js cache in a controled way.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"a4d70895d71834e112d1a3aaa083f4049a5e798a","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@1.0.1","_shasum":"8bdf3aee9ed9a40955a2d5df55b62e48e429b441","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"shasum":"8bdf3aee9ed9a40955a2d5df55b62e48e429b441","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-1.0.1.tgz","integrity":"sha512-jMbVGwE57vxa5NI9t8RC2K4cqVXN03/9Mvvip5+9nmSKTzxhfjFX+NR8GxctIKPOJvZB6I+gsqRiUMwlBFxDLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMBsS+PLJ0E0Vq6WLesDsE4PgLrYDTckA6fN/pLMISHAIhAK1G8maWB4mb0d7pTlNO+gUK5eLqKz33uStOQBYBxJNs"}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/wipe-node-cache-1.0.1.tgz_1483051456502_0.8329190113581717"},"directories":{}},"1.0.2":{"name":"wipe-node-cache","version":"1.0.2","description":"Wipes node.js cache in a controled way.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"8cf2a41adde0b300bc5ae27bb54e7b51df18aae1","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@1.0.2","_shasum":"2461a9a540645ec3e218b1b4577134715b3fde71","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"shasum":"2461a9a540645ec3e218b1b4577134715b3fde71","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-1.0.2.tgz","integrity":"sha512-IqqBclsenTOnbJt4r9T44lbay1ZmgVxxzGqgjisFrAENKyDrw/S8mDAFrydfaSHll2jH+w6NvhEYlNSQRHBS4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD65ktAelzoBB+/5gvPPJ2ZZLL+SDBwL382n86e0Jk6gwIhAJad5FbnIw7DR5pYWeGtigXi66A2Y5KcEnpE30LrZTMf"}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/wipe-node-cache-1.0.2.tgz_1493870578786_0.9564209289383143"},"directories":{}},"1.1.0":{"name":"wipe-node-cache","version":"1.1.0","description":"Wipes node.js cache in a controled way.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"0c4595a4be11461d6705516db0d94d41026d8ea4","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-awSyDMC+XfWwO7LQPShGQGHQFSjaTlScpuvyqB8aS7IRnDlbd2DASIzTy0jKGmGBol567w/KDsVOHw/c/T9SIA==","shasum":"cd407904d81f0a76e536a9376ed1b82800dc837c","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzBmNkFl0d6tWPTkKI5h+pNz6e5d8C3eOdSwnypfCLwAiB9MIevPnj9q7Naz+guBI6FDXhiJIPETjQ5VQn+5MjNwA=="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wipe-node-cache-1.1.0.tgz_1512622113812_0.09530313615687191"},"directories":{}},"2.0.0":{"name":"wipe-node-cache","version":"2.0.0","description":"Wipes node.js cache in a controled way.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"9b9dfdc62a9973cda158a5d050ed33404f844ea2","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@2.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-hhBPLLS0uolrqoyOaSQFWbBHNWYwrDDSuMy0xxzR9MNFgvSmNW86r97ibiT/4l96s8HYa+R+cTS0synaRQ6Kww==","shasum":"43bb1b3dcaf5bb40d643752131f2dc37ad48690b","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-2.0.0.tgz","fileCount":10,"unpackedSize":10439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyuFkCRA9TVsSAnZWagAAiRgP/Aw+GWoJ9oDBKbAxCQJL\ncT2IjbHDz5TaKGulEVjlUOkTxFw1/Buan7xQEL+2bnJoz8rAM9aYgKOZ+Brk\nyxZFClE28l9OCV/6P5VmfNbebUTc3+8HOyBLoc5N6Qqc6/xdpg9SXE7+tZE0\npz+1NFc3M2YvqHYtnpK4Kw+V2Wo4Rw/U0MpwPaqpqLvnanlLBUV4shPfVjK5\nsI7mCD2/iDAwP8O+QK/Ho/rgFVrJu8E5mbo3nw9c9ExioSlD1l6/i45ZsLGZ\njKuYlmmcfSX0uvy1Hn8gbahTgPKlS+uCdW9NciVfjtzE3M0FZsv62ZlfmFgG\nLd1Mc6uRirExvv+tAdGIThvtPI+vA7jotW58wZH+oJs42dtducJ2oQLony72\nfsTyOfIo2x28QHeJYiBVDb/Een/vB5D6N8ntMrUAthGImqLE8eoSMdmA/O2T\npFLmuXp4epe4sWth492z5iwV+fGT5+VCX85HwYfdVUXq1nxQUjTjrDouhtby\neUqw53Ho/47E516a6AOIwu9hsbMrlN8pVZwIjXqJZp+0f57BVbXCJWCl49xT\n5tKG4186RctPga9ZKVZO94rZolfy7GhReYpMGefNYynAYK3PxsraluBo6wmY\nTu9jvAT+C/BQWLNMCz24lC0dOMM0n7PiwIVf8/QCUSA1tbJpfh4Z1HFBf1xL\nlMyb\r\n=PGdn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDk9ue+vRssXsHogEEqlhCFwDl61doFfWkp1YWjdFqnFAiEAtthTogZx0y6tcrHPX4N3n2X656BypI4kNYxFJDMv+l0="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wipe-node-cache_2.0.0_1540022628099_0.9058650054879631"},"_hasShrinkwrap":false},"2.1.0":{"name":"wipe-node-cache","version":"2.1.0","description":"Wipes node.js cache in a controled way.","main":"lib/index.js","scripts":{"build":"BABEL_ENV=cjs babel src -d lib","test":"mocha","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-preset-env":"^1.7.0","mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"082e6234e859cd0419f7b73d31501eed566abef6","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@2.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-Vdash0WV9Di/GeYW9FJrAZcPjGK4dO7M/Be/sJybguEgcM7As0uwLyvewZYqdlepoh7Rj4ZJKEdo8uX83PeNIw==","shasum":"9dc20a2f881c1e5fe3f4a6e8a98047079d97acf6","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-2.1.0.tgz","fileCount":13,"unpackedSize":106631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5Xa8CRA9TVsSAnZWagAAJ3MP/3ecxaU64wYsPwof7AZ8\nLFZcnRn7gDH6yJt7wEpyhRLOxcgn6piXUR9J3j6dOGvxxc7fYJfWv7qsz++J\nUPkqCY1jch1acdxMAuagW+uABdACF6BgBTvBwu4H1EXA9xeiE1rwHUObm5iW\nKi/3Oi6Ka4777us5lLw8oyfH6lJBTmN8c8X45/p+YT5gYC0k/Is9du+8RH+k\nr8AlEBQXg/5weV+ZdUXH2WKIAZDKAL73jJwTjZOA8c/kOIyCRm/kwVuV1i1+\nyc8LAP0qbNBlpL6vdf9GU6+t/8IkmZ2Tpvrufwjk08W0DAJGDbXucJVYAKm0\nk8RqAP0I7v5XnjyGi1ABzjEepeBIYIqqy0+jQCHso4Wy2R5pkaTuW3nFKPXo\nQVK1BFW2QrYV9TW3+li2+spMpTLfB9bRBrpg9ZYKs+K+JvEBHkkvYbJCUXQN\nqDqFQRB9KUrxJyffefgfKRabXuf7/OEhvPEqNbpXXF0aruSykyznyGfjPk8d\nYYYazLL+0VcScELKAWTU9ni7IOTapFJapkWE2NhdfvTBkuBjELSLA74s1bym\nXTcvG14ygPgp6y/WhP3Uom5uyKXUHMyXzTsfrvhseiDLB5qSjLeFPR538QD3\nMqeui6nDpfjpp5z5ssrBSGwfZj54zH5Pk0EVpv3RhesVRzQnayiw5wnZqHG5\nf67J\r\n=6O61\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDssgqipzUOdRm4VMxSN6C45bmuptXd/Xu8dBUsb2RbRAiEAvtt/E/qavjVqrfEHDREF/O7e3MqCRwImoCOQoMKExpU="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wipe-node-cache_2.1.0_1541764795927_0.9731258153004179"},"_hasShrinkwrap":false},"2.1.1":{"name":"wipe-node-cache","version":"2.1.1","description":"Wipes node.js cache in a controled way.","main":"lib/index.js","scripts":{"build":"BABEL_ENV=cjs babel src -d lib","test":"mocha","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-preset-env":"^1.7.0","mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"e6642071e9d7de07f1d6b2693a9d17f3b6f44214","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@2.1.1","_nodeVersion":"10.15.3","_npmVersion":"6.10.2","dist":{"integrity":"sha512-b2LdVay9YDim1Y5CTGYXZFxi8MuB5H1QHFApQu9+SERwqYuS8dwh8M4hhXEBut/z8pi1BCfAtEQM8280iT/oJg==","shasum":"4effd435ff34c6b1d18c2643cf8d4fe4ce463878","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-2.1.1.tgz","fileCount":12,"unpackedSize":14505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRiRdCRA9TVsSAnZWagAAY20P/RVTBJ9RB8JLQe5ms88c\nY1qio1bjuZJlAlchnzMTK4iMCn3lQEk1MyvLIUMhpBs0BL6kyZ9QLmZLu6dj\nUhLOkTSG0oozaUms1nhfPARk9RH7eSKaDTGkNmq6GJyrMPhC7P6ugO1cL1SO\n1c1CHTepkTRZC8G1P61oIadkRqQFmh3j9Zlw8xyzg7Iu/6OhPpEiAXQs3iUf\nG7BEkXs0eUY8kT2HXCvUUgLxM/u2dixKbBoBvzfaf73zNi2MTF5SC9XZdzEa\nBaBrM19dmRaeHN9KgSWvK8xD54DKkCi1omZ3ZlonNWvLE3nkYaiG77c9vmec\nwfIiJ+r8tVvJmwKErpZnXIgMvuZpaqlW3Y+/4u0H8N2aR9g40l684OiGkY/Q\nwXY9Rx4zA9kKqrQBxS8Gsz93dA/HurtpkpsGSfSABqDH/+vqwjQ1+OlcaEmo\nQJLG/KWVlU/IahZVSIfJWDQHP6kzcmqv7OUn/jnOoPHIvw4NM2pc362zOMxn\nqzOuk2dkf1K33JD2SA5597iYpu+Cf7aMRu9zCDJjhHjA9y+YuOveQEv33/LK\ncrhUY2Bb9KwkNm3vXDeFbUPOoliFu8hv93FLEWuI0QbKKEWcQ7j0BRLZ8RfM\n25jaCOmZ9GLrZ6LBbxJb6lH7L4QtBnfehwnFdysmVvHYj026aDZNaxuLAX6T\nkgTP\r\n=IumY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZDFZkXy/Pp8BorzGS8I750xj3dlIpSm0CsodE4tOKuAIhALCrkm0W8ThiSWAmGpTGk3cMHhWu9SZBjSJqh2cYgEnD"}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wipe-node-cache_2.1.1_1581655132706_0.11804194681430702"},"_hasShrinkwrap":false},"2.1.2":{"name":"wipe-node-cache","version":"2.1.2","description":"Wipes node.js cache in a controlled way.","main":"lib/index.js","scripts":{"build":"BABEL_ENV=cjs babel src -d lib","test":"mocha","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"keywords":["require","cache","injection","test","mock","stub","clean cache"],"author":{"name":"Anton Korzunov"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-preset-env":"^1.7.0","mocha":"~3.1","should":"~3.3","sinon":"~1.9"},"dependencies":{},"gitHead":"63d7cd25b663b7864573dad6907a3a0391b6a588","bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","_id":"wipe-node-cache@2.1.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-m7NXa8qSxBGMtdQilOu53ctMaIBXy93FOP04EC1Uf4bpsE+r+adfLKwIMIvGbABsznaSNxK/ErD4xXDyY5og9w==","shasum":"f5aef4bc4366866f89536f3352eb6b9deda53ca0","tarball":"https://registry.npmjs.org/wipe-node-cache/-/wipe-node-cache-2.1.2.tgz","fileCount":12,"unpackedSize":17404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerUKxCRA9TVsSAnZWagAAgOEQAJ3J9ywY1fXvCcdwvxx6\nCRgiyPYUErEh5QIECtTlzQRXzxqzB4f9SSueuBwbTqzH93MU0D1FEAdPIXcQ\nh5DRyEDEBCjldZqThs1MUrechOyJvJLp1aNA95BITv7qWXqa815lmR0agmnD\nfA4vBf0bsRVOYYQLh2gHKMKUO9o0ZFPn1SUMQFa8JkDiNS7il1k8TWGP5LGP\nGjodQwD/oNW1uu4F1Zf02MES3FLZQ0M7TfNStz3VQFywEugZDHaIKrz9dVHa\nw2LzIDswTxRbwp6D1Pk2ueCRVp+LKwyN8PXvFXDfE0cZFVwy3lZdGabUSe/1\nY3fqPvbEfWJXKdNcSxlknWjONOUSsy0f36vbpzDlzMtYo6tIIOEORuhdPf2k\nDsK4iCdnknchmgvi84C+cHH+APyKwIuVC4nv9XQxHYs9oOIQnLVm7BKTgxPK\nYkKSc9Pzmy4Mu/3kS/7BXpWrk3huZdtfk000/QAwL7ZA/WSTi9Julh3Uqkeu\nb6MMUgfNLcvc+Fp/yF+yNMOtbr0PKY6C1qQKNksg35i77MlPTZUSsAZBf2HV\nP2I2gz3xIiR64dkyOjwyBjVy8yGAHIuv/XHAsgPJ3efiMuHlAPzM0se+L0Jt\nZ+jARj5yYoo8hHgAFl7B3nwn1rkqLO1Q4X8f46ifG63CMmYUQXQdQ/tgfE3Z\nPlyN\r\n=bm7Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWV0U2EggYR0pgdgOGDEHPJaPsraAhSqhj/N4NGdrdgAIgPy6lsDaTYZN14gfpJ5FvPp2gPzlz7nDySSRqTn3wszg="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wipe-node-cache_2.1.2_1588413104945_0.9026771638963147"},"_hasShrinkwrap":false}},"readme":"**Keep your cache clear** – as my mom always says.\n\nwipeNodeCache – cleans, clears and wipes all old dirty modules from node.js internal require.cache. \n\nUseful for testing purposes when you need to freshly require a module. Or two.\nOr just keep all modules fresh, for example for proxyquire.\n\n## Install\n\n```sh\n$ npm install --save wipe-node-cache\n```\n\n## Usage\n\n```js\n// foo.js\nvar i = 0;\nmodule.exports = function () {\n\treturn ++i;\n};\n```\n\n```js\nvar wipe = require('wipe-node-cache');\n\nrequire('./foo')();\n//=> 1\n\nrequire('./foo')();\n//=> 2\n\nwipe(null, function(){return true;})\n\nrequire('./foo')();\n//=> 1 . Module is fresh now\n```\n\nBut this is simply, and stupid way. We can do it better!\n\n## API\n\n### wipe(object1, filterCallback, bubbleCallback)\n\nForeach module in system wipe will call _filterCallback_ with 2 arguments – object1 and moduleName(absolute))\nAnd you shall return true, if you want to wipe this module.\n\nAfter first pass wipe will enter bubbling stage, and will wipe all modules, which use first ones.\nEach time _bubbleCallback_ will be called with 1 argument - moduleName.\nAnd you can decide - purge it, or not. \n\n## Examples\n\n(see examples in source)\n```js\nfunction resolver(stubs, fileName, module) {\n  return !fileName.indexOf('node_modules') > 0\n}\n\n// wipe everything, except node_modules\nwipe(null, resolver, function (moduleName) {\n  return !resolver(null, moduleName);\n});\n```\n\n```js\nfunction resolver(stubs, fileName, module) {\n  var dirname = module ? path.dirname(module) : '';\n  var requireName = fileName;\n  if (dirname) {\n    requireName = fileName.charAt(0) == '.' ? path.normalize(dirname + '/' + fileName) : fileName;\n  }\n\n  for (var i in stubs) {\n    if (requireName.indexOf(i) > 0) {\n      return stubs[i];\n    }\n  }\n}\n\n// wipe anything from helpers, and app.js.\n// but keep hands off node_modules and core during bubbling.\nwipe({\n  'helpers/*': true,\n  'App.js': true\n}, resolver, function (moduleName) {\n  return !(moduleName.indexOf('node_modules') > 0) && !(moduleName.indexOf('core') > 0)\n});\n```\n\n## Related\n\n- [proxyquire](https://github.com/thlorenz/proxyquire) - Usefull testing tool, but with bad caching politics.\n","maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"time":{"modified":"2022-06-29T02:35:21.115Z","created":"2016-12-29T22:42:05.860Z","1.0.0":"2016-12-29T22:42:05.860Z","1.0.1":"2016-12-29T22:44:18.742Z","1.0.2":"2017-05-04T04:02:59.050Z","1.1.0":"2017-12-07T04:48:33.925Z","2.0.0":"2018-10-20T08:03:48.298Z","2.1.0":"2018-11-09T11:59:56.110Z","2.1.1":"2020-02-14T04:38:52.817Z","2.1.2":"2020-05-02T09:51:45.049Z"},"homepage":"https://github.com/theKashey/wipeNodeCache#readme","keywords":["require","cache","injection","test","mock","stub","clean cache"],"repository":{"type":"git","url":"git+https://github.com/theKashey/wipeNodeCache.git"},"author":{"name":"Anton Korzunov"},"bugs":{"url":"https://github.com/theKashey/wipeNodeCache/issues"},"license":"MIT","readmeFilename":"README.md"}