{"_id":"require-self","_rev":"898929","name":"require-self","description":"Enable doing require('foobar') from within the foobar module","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"time":{"modified":"2024-07-21T23:28:48.000Z","created":"2015-05-03T01:15:30.577Z","0.2.3":"2020-03-18T04:33:10.340Z","0.2.2":"2020-02-29T06:21:13.905Z","0.2.1":"2017-06-07T02:25:12.850Z","0.2.0":"2017-05-29T03:26:18.986Z","0.1.0":"2015-05-03T11:21:10.792Z","0.0.8":"2015-05-03T10:59:53.199Z","0.0.7":"2015-05-03T10:15:21.969Z","0.0.6":"2015-05-03T04:20:27.770Z","0.0.5":"2015-05-03T02:51:24.069Z","0.0.4":"2015-05-03T02:09:42.209Z","0.0.3":"2015-05-03T01:48:57.091Z","0.0.2":"2015-05-03T01:25:38.459Z","0.0.1":"2015-05-03T01:15:30.577Z"},"users":{},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"repository":{"type":"git","url":"git+https://github.com/yortus/require-self.git"},"versions":{"0.2.3":{"name":"require-self","version":"0.2.3","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"require-self":"./bin/require-self"},"repository":{"type":"git","url":"git+https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"911d2cb056d48f34c44286984737d8bec252afbb","_id":"require-self@0.2.3","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"dist":{"integrity":"sha512-keGBWkK0PWJGFAd6IznpjM5zZzySbsrvzq0ElXpZ4G8hzymV9I+/OnC916MF5mRxHRWSZKGIyCFJ73BZFz3xaA==","shasum":"20782194699887e07ce5a452738090ad71d524d6","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.2.3.tgz","fileCount":4,"unpackedSize":6257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecaSGCRA9TVsSAnZWagAAH10P/jivOoTUMBxXB+Lfco/9\nWQryV9D/rV12uKuRpTmQwijUpIdQqeEZBMuGXKC6DLLO1nWXFX3KMd3et59e\n8TUFWma07Bnf5b/y6PM4pUgwcKGoBT8Yzz2siaxyoRxuIH8/sQSQYJzJgvtn\nps4yzP0MF1po+PovhsKBlNG/JiUB/a4SfCJj40w6axhBi6CZpkQFdo+3gJ3f\nI3i2KJ8xYwfLMAsDgrvmrEj/rCOEZlsJfXFbEnatTV+FkcyoBYckmi8vM7fw\nLKddgrtcq2V2/uVV9Urhmsdw6T4Wu4cYe0oZ4GlrwbSryT++M2dZ7wyrgbx0\ntqRkDes0Hy/z45I3pr75KSxRdOeAxCwrDbseKId+eDFc8+LnVDxnvHemEgWj\nNGsPPlF1du8aDgMRGivZvNAc7OCkw0jgElJH5YoH6/42Ormop3ImL9aZOIW/\nbco3cjWNApE/vhN3DVPovn7rehu6haXXEBj5jQA4SPLYFJsg3uRWuJwbPTIQ\n0trpSGQHi/Zdx6SJUtjFiDx6CKsFY10zBGaK7tzAmq95Oh7tHD67yAP8IShM\nCe4OGlXOj+KXd8E8qt1Fdx35ZihnVAuj+S5eFd0CgPciW/B8NQ8MOzFhoRaM\nAkD81EPHrZ7grYIPwFs2xJrUt1SW0KbeU348OmFzI+mURwYmO/HHfbBUxiCz\nblop\r\n=dQVY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSVUv0pII/3tAZywFOL/rd84jaPvfaIvxynH95VjjUnAiEAtMJToCvycJWj4bqpG7Uv8O3lZhQxvht9JNYR9hr1KZE="}],"size":2653,"noattachment":false,"key":"/require-self/-/require-self-0.2.3.tgz"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/require-self_0.2.3_1584505990200_0.1668682023036583"},"_hasShrinkwrap":false,"publish_time":1584505990340,"_cnpm_publish_time":1584505990340},"0.2.2":{"name":"require-self","version":"0.2.2","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"require-self":"./bin/require-self"},"repository":{"type":"git","url":"git+https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"43f6f3e7f49baba5f53f8d670f466b5183ef26d3","_id":"require-self@0.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"dist":{"integrity":"sha512-wuEp9eQcx/4l3LwTolzcbmD89NyE9ILCtbvd9mHkNgzKf6uKdGk5Uj927UvSSeJoeAGstvTwpzxYG22KCUfm/g==","shasum":"a4719ae74467f7d19881797f959382a01952f532","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.2.2.tgz","fileCount":4,"unpackedSize":6383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWgLaCRA9TVsSAnZWagAA45EQAJSvWcGZ5iEOIccI6d1k\nPnemO1Nka1NvFSwM/eMwsked6d6YRxwDQ3wh3mjHoy0+NiodbxErZcmgeyVU\n6/XOP+6xpTiB2M/4scqUO+zOWoyJ9oO1mJZlFjBb5yE4U3GaTQXVeMM+tBKX\nwXz/7ZHwOU7IlZSjtIRuyvla7Z9W5t2SbOmOdjydV4JX80dGcX9etznf1qdj\nImLmZcxxScx9u3Gir/9HBE0Rxa1onkqH89GN4tgUVT3tBCkkjTc5PvzF7+vq\nPL5bwGl6DH8Vo4xhAm+sVh+4XDni7L80iXLM8vxlhlhRla94TkhbOEk8tnuX\nf77AGqsnHwXuP2X7BMwtTORaHB1tYhpqiWjccmJ46SbJmnvu1lwlhPicfwcN\nKZg8S0Mbb/Jcbf+ZiEYcyVzKjAdL6zMPffgZtJGgfgLmYZL0X9CtTfVwUpLw\nkcVPFc2KCGLbfD3ovkxG/oCZuIa2zUyVwgx+ErO+DUsaIJoVT23hLTuY4AZW\nZl7De+9lv1GGDhAnDGgZY41I5sHgnYF5DcbBxtXCjwtVZYHOAm236bRFt7GO\nqVNjBkUuJlhBAeDOD7j/lODHJZ58wXHCYOpPnk0w7OeGQIhIOcenKG1y5nRA\nyx4QFTtitDsk5EITQZvrxV8cSG8yZYZHC4EAVnq+HVDai3xVgV2b023ssyVH\nWlyx\r\n=3Keg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaI0WpXXNGA9tQIFKdDQBk5jKKPjHYKSCdIhvM8qIhnAIgLxrP/GKOZr+yldfSum7pHMIkNTVpXAz1VEDyFNyJewQ="}],"size":2617,"noattachment":false,"key":"/require-self/-/require-self-0.2.2.tgz"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/require-self_0.2.2_1582957273807_0.987644397070871"},"_hasShrinkwrap":false,"publish_time":1582957273905,"_cnpm_publish_time":1582957273905},"0.2.1":{"name":"require-self","version":"0.2.1","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"require-self":"./bin/require-self"},"repository":{"type":"git","url":"git+https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"1f136d8c9387b973fcfe4e7822f5f04b566271a3","_id":"require-self@0.2.1","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"dist":{"integrity":"sha512-UtdzH3nSUepBgtIGSoGs3MJOooh3zMYG5qZ3YVv0+1yocJ1oBliUXYoQkR+eKOpCfaGw84jHmGXX5GC8WhdGSA==","shasum":"7bf819cde94e921e1e3d98a451f40f2fac7e19d6","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC67KuGtKA7tBE3diNIzRaqZX/BP5UR0Yllpy5iFLN/YAiBeELCdY1wetGxikvclFeeL6RJTiGVW35Sv62KCOlbnbg=="}],"size":2656,"noattachment":false,"key":"/require-self/-/require-self-0.2.1.tgz"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/require-self-0.2.1.tgz_1496802312779_0.5349909141659737"},"directories":{},"publish_time":1496802312850,"_cnpm_publish_time":1496802312850},"0.2.0":{"name":"require-self","version":"0.2.0","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"require-self":"./bin/require-self"},"repository":{"type":"git","url":"git+https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"e442a8356db6c0637a7fd8cb055a6cc9bfcbbe31","_id":"require-self@0.2.0","scripts":{},"_shasum":"073dd04124f9b59895c8018c6f5480236174af96","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"073dd04124f9b59895c8018c6f5480236174af96","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.2.0.tgz","integrity":"sha512-BTdOqWMxORR+fDwDy6rpIxy0Zh/IzU8FQl9fdeuZ+Uy/ce8VHtKbKFaA1c3rHlnkWlsVVjKSVv31PLcf05Mwmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhXvnReb9y4Xb9muXJ1Kg8SMkmX7qW91R1c5n5+OjW5AiAeAKRp4/OlNcMBeYRnhC2yPWm7AECu/JjO+l0Rv0rUQg=="}],"size":2541,"noattachment":false,"key":"/require-self/-/require-self-0.2.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/require-self-0.2.0.tgz_1496028378760_0.6887908689677715"},"directories":{},"publish_time":1496028378986,"_cnpm_publish_time":1496028378986},"0.1.0":{"name":"require-self","version":"0.1.0","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"require-self":"./bin/require-self"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"57327d4f209165d49a03561bbad7627f37b20f28","_id":"require-self@0.1.0","scripts":{},"_shasum":"3f9251eb5cd433441464ad04b2b5527d2ca693af","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"3f9251eb5cd433441464ad04b2b5527d2ca693af","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.1.0.tgz","integrity":"sha512-2Z3dnGLMW+9rm1QD7U2ajVFn/1cZTwRlUNjIGBpoO+i/6iB5faxtDl3r9KQw5zhMusuFBDGw5SyHyIkpCv+nVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFczLGEf/kbyKRg3BksX7LnfOFXj58tz2els7FN+/TIIAiEAvYjKr6aLOQtkaN5Dj88njjlzWJDpoZlwFR7vdthp1QI="}],"size":2452,"noattachment":false,"key":"/require-self/-/require-self-0.1.0.tgz"},"directories":{},"publish_time":1430652070792,"_cnpm_publish_time":1430652070792},"0.0.8":{"name":"require-self","version":"0.0.8","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"requireself":"./bin/requireself.js"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"02ef7da6a572fc268a01aafc86884042e26558ea","_id":"require-self@0.0.8","scripts":{},"_shasum":"5244bd8b3904d69fc010e519d60ae1bc13b67897","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"5244bd8b3904d69fc010e519d60ae1bc13b67897","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.8.tgz","integrity":"sha512-IoGEitfGj5e5FGgZinGiayInmTGibSp1ZwPwAVZII4zunkCKzLfM2eK8PRaMp2gchDb3bwsdtup5OmVVD8/Lbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAYZeJq+BgmDALpquflMY/IddcQ/kSzsjlGqtzNDOvIHAiBDOCtDhsM6De33kDN7M7TVTAO3kPlgtnkFZdVKEiTqGw=="}],"size":2424,"noattachment":false,"key":"/require-self/-/require-self-0.0.8.tgz"},"directories":{},"publish_time":1430650793199,"_cnpm_publish_time":1430650793199},"0.0.7":{"name":"require-self","version":"0.0.7","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"bin":{"require-self":"./bin/require-self"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"8f1ddc2f9aac772cf9a5768e4ed66afdaf9122e1","_id":"require-self@0.0.7","scripts":{},"_shasum":"2a5ec24c5b88fa5cdda7447441b0cde8685a0c86","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"2a5ec24c5b88fa5cdda7447441b0cde8685a0c86","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.7.tgz","integrity":"sha512-1UmPmYm+6XIp7peP6zavT34+bgtWeqE7Hmg7U6CtwUQME617Aodcs3iwdgtS+RMFbF5NdtHvDHbN94U0Lu+0Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfc4lgE4qmN7BL9nD0ZrC3CQxyE7IbzwgogMkbyMavxAiBgMxwEJMSvgLBZrPJomRQY1e92BemD0DGoWMDGQTw1oA=="}],"size":2400,"noattachment":false,"key":"/require-self/-/require-self-0.0.7.tgz"},"directories":{},"publish_time":1430648121969,"_cnpm_publish_time":1430648121969},"0.0.6":{"name":"require-self","version":"0.0.6","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"main":"index.js","bin":{"requireself":"./bin/require-self"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"390fa726a2686db99c96140f5679a66fc2e6ca43","_id":"require-self@0.0.6","scripts":{},"_shasum":"a5640605c4370ee70c14306a294fa06bc3b86feb","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"a5640605c4370ee70c14306a294fa06bc3b86feb","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.6.tgz","integrity":"sha512-djATRa0Yt3mYFyOiKw0mQ0EWhW5W+iSR/12dXbavSBpLE39zgvFWbzfw+kVuUXLCW9QPny5NSQIChtHhGp9bFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2n1wMJzIlNTQdKfFnmhYH+QPYDYFeAFYmxi6fiG7p4gIgcfvm0LiBqX/erxRS+LKgzw7MebKPyHVZR2V7WGp2KB0="}],"size":2176,"noattachment":false,"key":"/require-self/-/require-self-0.0.6.tgz"},"directories":{},"publish_time":1430626827770,"_cnpm_publish_time":1430626827770},"0.0.5":{"name":"require-self","version":"0.0.5","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"main":"index.js","bin":{"require-self":"bin/require-self"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"e6fbf45807c154cf8f6f38c6da7ad5104f3493de","_id":"require-self@0.0.5","scripts":{},"_shasum":"de1cfe40cce923ba12bf1397c5ab965193d17e42","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"de1cfe40cce923ba12bf1397c5ab965193d17e42","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.5.tgz","integrity":"sha512-4DwsTBUq/xLaXSpSK+OxxstgjKQ3SwGhDfT+X1GIeiq/MpH0voM3qiL7XC0klpSUAnbmmfBeZVwcHHCKamsxSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkcOJr3/MmvbavVNwkEUU5FCd+bdNFnMtYFMndjSyqDAiAyWCjKaWCaFIGKU2s6ADvNWhsFeRcCbd2DDRD46cGC4w=="}],"size":2046,"noattachment":false,"key":"/require-self/-/require-self-0.0.5.tgz"},"directories":{},"publish_time":1430621484069,"_cnpm_publish_time":1430621484069},"0.0.4":{"name":"require-self","version":"0.0.4","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"main":"index.js","bin":{"require-self":"bin/require-self"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"2aaea748b7bf0ce36e231b7da7159fe6a9da2331","_id":"require-self@0.0.4","scripts":{},"_shasum":"99f83f6e204630897df08626b851c7aefb0ad125","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"99f83f6e204630897df08626b851c7aefb0ad125","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.4.tgz","integrity":"sha512-7gZE5RSG5qYX93nvwRZI6c+xYfk2hhlpbs8ywO748AWePh3+TctSQJFum97Q6MiyxaxdJk80RK5awrVqOkmxlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCxSOw4rUWhZ5fq+TmfGdSMDEM8+cfpovF4sF5plKNkgIhAM0xdjAQKNhVE9VxDYSDnECCCbVRWnA0RQ5lMRhqNoXN"}],"size":1458,"noattachment":false,"key":"/require-self/-/require-self-0.0.4.tgz"},"directories":{},"publish_time":1430618982209,"_cnpm_publish_time":1430618982209},"0.0.3":{"name":"require-self","version":"0.0.3","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"main":"index.js","bin":{"require-self":"bin/require-self"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"bd0f7706cb9693f32fd19421313843923f069abf","_id":"require-self@0.0.3","scripts":{},"_shasum":"d5aa5db312b66ab024b85fc936bd68830418448c","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"d5aa5db312b66ab024b85fc936bd68830418448c","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.3.tgz","integrity":"sha512-7I+BoIAGSM3piIq10dhcvP4ai9+yeGbDPd0tB8OmRghjKQrupjwUnZQdsDsLvHe90DvCSQJrSFGyBEdwVuRdlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoODt0HtY5yz9D2ge+L60N40I1+CeGxki/Y32RGJ0QQAIhAMKfvVnFBh1uJU5Z7aCW4Kq29Avvxi0zrckmZD1+sD1Q"}],"size":1467,"noattachment":false,"key":"/require-self/-/require-self-0.0.3.tgz"},"directories":{},"publish_time":1430617737091,"_cnpm_publish_time":1430617737091},"0.0.2":{"name":"require-self","version":"0.0.2","description":"Enable doing require('foobar') from within the foobar module","keywords":["require","self","module"],"main":"index.js","bin":{"require-self":"bin/require-self.js"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"2a250ad50a96c266295114cc3aae87b3d210d912","_id":"require-self@0.0.2","scripts":{},"_shasum":"a5ac53041c234a8201d3077ec84caa8794112842","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"a5ac53041c234a8201d3077ec84caa8794112842","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.2.tgz","integrity":"sha512-0NUeRPqy5Vod0pNA3bJKrBF8AIrVaiREJn7XkMP7CM+OYhccEaB54P6qK7fPb3IwAQfI/fZDOZicEddlRCORqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNfs3BULZjaYJ9kgC2ovspasdaeETTRHV67vjUIdBlHQIgDw3Ovb/GANjBdMcfzwPL106+5SVG3sy47xoxLr19ZVg="}],"size":1486,"noattachment":false,"key":"/require-self/-/require-self-0.0.2.tgz"},"directories":{},"publish_time":1430616338459,"_cnpm_publish_time":1430616338459},"0.0.1":{"name":"require-self","version":"0.0.1","description":"","main":"index.js","bin":{"require-self":"bin/require-self.js"},"repository":{"type":"git","url":"https://github.com/yortus/require-self.git"},"author":{"name":"Troy Gerwien","email":"yortus@gmail.com","url":"http://github.com/yortus/"},"license":"MIT","bugs":{"url":"https://github.com/yortus/require-self/issues"},"homepage":"https://github.com/yortus/require-self","gitHead":"04ad17801db7314712643ccc2670a8d1156b9213","_id":"require-self@0.0.1","scripts":{},"_shasum":"ba3b7c11585c03d45a49f5cdf084c7c6fff2b2a4","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"yortus","email":"yortus@gmail.com"},"maintainers":[{"name":"yortus","email":"yortus@gmail.com"}],"dist":{"shasum":"ba3b7c11585c03d45a49f5cdf084c7c6fff2b2a4","tarball":"http://registry-npm.ywwl.com/require-self/download/require-self-0.0.1.tgz","integrity":"sha512-g93ujmt5e/QaS2F6u0atpC5Tmlrzd8zNYpAFGhuLf67TbNWF53kN0XRsFB8Xi4wSirhT27DjmKVfWbsQcfCcqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3IzUhuEoyvYEg45qX+fS3V+hgfKkO+ciac8cw3Z1eCgIhAKw58WZ/6HjCYjNrXRomE9D9CHRnClIwPEJNM+jMoEWN"}],"size":1404,"noattachment":false,"key":"/require-self/-/require-self-0.0.1.tgz"},"directories":{},"publish_time":1430615730577,"_cnpm_publish_time":1430615730577}},"readme":"# Problem\n\nMany Node.js modules include test and example code in their repos. This code needs to require the module itself.\n\nBut whereas modules depending on `foobar` can write `require('foobar')`, the test and example code within `foobar` cannot reliably require itself that way. It must use a relative path like `var foobar = require('../..')` instead.\n\nBeing able to do `require('foobar')` instead of `require('..')` has a few advantages. The code can be moved around. Example code is a tad clearer and can be reused in a client module without changes. And if you are authoring in TypeScript, then `import foobar = require('foobar')` picks up all the static type info from `foobar.d.ts`, exactly as a client module would see it.\n\n# Solutions\n### Solution A: Do development work inside a `node_modules` folder\nIf you ensure your `foobar` module directory is a direct child of a directory called `node_modules`, then it can require itself using `require('foobar')` and Node's module resolution logic will successfully resolve such a call.\n\nHowever, if you wish to treat your `node_modules` directories like an artefact that is always safe to clean/delete, this approach is not going to fly. Development work and git repos under `node_modules` may be inadvertently deleted.\n\n### Solution B: Add a self-referencing module to the `node_modules` folder\nA straight-forward solution is to add a file called `foobar.js` inside `foobar`'s `node_modules` subdirectory. This file simply contains `module.exports = require('..');`.\n\nYou could automate this step using a simple `echo ... ` command in an npm script, but that won't work cross-platform. Another way is to put the equivalent of the `echo...` command into a reliable cross-platform node source file, and call that from an npm script.\n\nSolution B is precisely what `require-self` provides.\n\n# Usage\n\n1. Add `require-self` as a devDependency to your module.\n2. Call the `require-self` bin command in your module's `prepare` npm script.\n3. Run `npm install`, which will install deps and then run the `prepare` script. (*NOTE:* if you are using npm v3 or lower, you'll have to run the `prepare` script manually, via `npm run prepare`)\n\nThe `package.json` for your `foobar` module will end up something like this:\n```\n{\n    \"name\": \"foobar\",\n\t...\n    \"scripts\": {\n        \"build\": \"...\",\n        \"prepare\": \"npm run build && require-self\"\n    },\n    \"devDependencies\": {\n\t\t...\n        \"require-self\": \"^0.x\"\n    }\n\n```\n\nNow all test and example code in the `foobar` module can use `var foobar = require('foobar');`.\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Troy Gerwien\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n","_attachments":{},"homepage":"https://github.com/yortus/require-self","bugs":{"url":"https://github.com/yortus/require-self/issues"},"license":"MIT"}