{"_id":"req-cwd","_rev":"9-8a5874f0acfcf2b9f1e3cf348a79d120","name":"req-cwd","description":"Require a module like `require()` but from the current working directory","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"req-cwd","version":"1.0.0","description":"Require a module like `require()` but from the current working directory","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/req-cwd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["require","resolve","path","module","from","like","path","cwd","current","working","directory"],"dependencies":{"req-from":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"3df8dc7c0acf47419afe767bbfa3e644d6ce567b","bugs":{"url":"https://github.com/sindresorhus/req-cwd/issues"},"homepage":"https://github.com/sindresorhus/req-cwd","_id":"req-cwd@1.0.0","_shasum":"c75db606bf0d18bfbf6529669dad7249e31041d0","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c75db606bf0d18bfbf6529669dad7249e31041d0","tarball":"https://registry.npmjs.org/req-cwd/-/req-cwd-1.0.0.tgz","integrity":"sha512-yuHeO4BAzatAx+JQqIcGdZrDtgCSRJTyj92UC7w4ANeqllfe2reEWf9WaCpX7VH3SMmLUcRg+Fx4oUY5d3vVuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlY2TrXivpqkxaFLQNH3rUv7ELJjvVOqHafvJn3iwfKAiBKA0J4VazDhO8OnBHhRQ7mr6Muwc+iTQtT4aAKwNk0Yw=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.1":{"name":"req-cwd","version":"1.0.1","description":"Require a module like `require()` but from the current working directory","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/req-cwd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["require","resolve","path","module","from","like","path","cwd","current","working","directory"],"dependencies":{"req-from":"^1.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"bd130ecd78665493682c5f38907e3a5f1ff26dd1","bugs":{"url":"https://github.com/sindresorhus/req-cwd/issues"},"homepage":"https://github.com/sindresorhus/req-cwd","_id":"req-cwd@1.0.1","_shasum":"0d73aeae9266e697a78f7976019677e76acf0fff","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0d73aeae9266e697a78f7976019677e76acf0fff","tarball":"https://registry.npmjs.org/req-cwd/-/req-cwd-1.0.1.tgz","integrity":"sha512-HiTYxFGOufW9XPjg3XP9cs9M2N4CUUNFbPkEDOU9whslwqL1ApcuLvHbzaX+7Jy77AjVDxnluS9YtZ0tPHr+sQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVIDvdQtft8JL5mrsbpBCsVene7U0ErNzdoRZjrPHdpwIgVVvou5bvN4YbdCEUt6KRYkI5yqDJLR15XBGXMyDvlUU="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"req-cwd","version":"2.0.0","description":"Require a module like `require()` but from the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/req-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["require","resolve","path","module","from","like","cwd","current","working","directory","import"],"dependencies":{"req-from":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"800a75b0fd54003cac624662c4103b881f30d2f8","bugs":{"url":"https://github.com/sindresorhus/req-cwd/issues"},"homepage":"https://github.com/sindresorhus/req-cwd#readme","_id":"req-cwd@2.0.0","_shasum":"d4082b4d44598036640fb73ddea01ed53db49ebc","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d4082b4d44598036640fb73ddea01ed53db49ebc","tarball":"https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz","integrity":"sha512-ueoIoLo1OfB6b05COxAA9UpeoscNpYyM+BqYlA7H6LVF4hKGPXQQSSaD2YmvDVJMkk4UDpAHIeU1zG53IqjvlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICG/mzLEaV4LP20yIurfKoerj0br+2cXyq+LMllUDVJcAiEAm8vHEmrpApyveff5TgvWdDfQhu5ju/eqH21vB6lfsmI="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/req-cwd-2.0.0.tgz_1493371186151_0.068817533319816"},"directories":{}},"3.0.0":{"name":"req-cwd","version":"3.0.0","description":"Require a module like `require()` but from the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/req-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"keywords":["require","resolve","path","module","from","like","cwd","current","working","directory","import"],"dependencies":{"req-from":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"800a75b0fd54003cac624662c4103b881f30d2f8","bugs":{"url":"https://github.com/sindresorhus/req-cwd/issues"},"homepage":"https://github.com/sindresorhus/req-cwd#readme","_id":"req-cwd@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-mNG+n8YOrmxr+BQndYSieHz4MypO9x19wf9/dwN+pzOS5bSokfCZpynC0A0R2kxowXCAkVD0vW111Ku9+BBaVg==","shasum":"d17f664a1b6f3cb3f191fb6e2d7f6f7ef7a41816","tarball":"https://registry.npmjs.org/req-cwd/-/req-cwd-3.0.0.tgz","fileCount":4,"unpackedSize":3483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4+++CRA9TVsSAnZWagAAqN0P/ilXsAHLI9fBgmtK/Cqy\nRr436WePZICwjBGX6vIBeJHFOFQd8t2AKXBj/dA4jgqMJCUuOKiqZQT6nBGM\nzg2N6W4BazEE+mH36pH/d8nCCrUS2FLXhjmPAR1l0MVRYfYCLW/rzqvjE0JN\n4o9eYm4i/6BEjuJug56eJqFIeP+ct60PY6U1zdkK5IMy9e2e2rPuiMRNu5Uz\nZGbdmPvAHP/QPnK0VIGi9sWYMJrL8Ou7NG0sF4Faxn232KqLYLsyVAAd7E4K\ngp8UH9OiHhdSq+YCLDlpn11UCr5RIJju0axQUcp1UXbetJPKUtzbMdINI386\npWv1RHD/qF+lOG4np0hzfOJFTFPwNGp2J39nnm6k5ei/qG5M66ec2pPqyoOZ\n6NBQCvhAGNLN/QSZkeSiLaZfERpGExkSr+eeKmIrHMYOouoxOo1mecsXn5rc\nW+NwnoDXYpx2L6PrdORvFN7Bw8OjEHh6SeEPnFNlYKDNP6OeMtSytw4moJrh\nkg8oZ63+/w15pCICoEy4UGz2Do0+RD+Y9k12dDiP+63+zxLpQLbwU9AXq5r5\nOSjrQyTgZv5/L1bVA5QIGm0E9mvTjKbVT660MLGViLBgqwTT7K70y4/H8nha\nf0OWD50DgsJk5zznY2ySNfg+ZwV3DIRL3MU35+6G7nUhXnWlWzo39vUgr4u4\nSr5T\r\n=edsA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiTRT9L+QYSpY3ORgWy6S3lZWjWeih/U6k4ZnflLwqOAiBpM5B0m8sf15aH1DBHOpHYAb6GFa2Z+Zutdws3okIMjg=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/req-cwd_3.0.0_1541664701584_0.022874653287624058"},"_hasShrinkwrap":false,"deprecated":"Renamed to `import-cwd`."}},"readme":"# req-cwd [![Build Status](https://travis-ci.org/sindresorhus/req-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/req-cwd)\n\n> Require a module like [`require()`](https://nodejs.org/api/globals.html#globals_require) but from the current working directory\n\n\n## Install\n\n```\n$ npm install --save req-cwd\n```\n\n\n## Usage\n\n```js\nconst reqCwd = require('req-cwd');\n\n// Target module is at '/Users/sindresorhus/unicorn/foo.js'\n\nconsole.log(__dirname);\n//=> '/Users/sindresorhus/rainbow'\n\nconsole.log(process.cwd());\n//=> '/Users/sindresorhus/unicorn'\n\nconst foo = reqCwd('./foo');\n```\n\n\n## API\n\n### reqCwd(moduleId)\n\nLike `require()`, throws when the module can't be found.\n\n### reqCwd.silent(moduleId)\n\nReturns `null` instead of throwing when the module can't be found.\n\n#### moduleId\n\nType: `string`\n\nWhat you would use in `require()`.\n\n\n## Related\n\n- [req-from](https://github.com/sindresorhus/req-from) - Require a module from a given path\n- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module from a given path\n- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory\n- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point\n- [lazy-req](https://github.com/sindresorhus/lazy-req) - Require modules lazily\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-06-17T00:09:16.309Z","created":"2015-12-06T16:45:10.389Z","1.0.0":"2015-12-06T16:45:10.389Z","1.0.1":"2015-12-06T20:11:17.780Z","2.0.0":"2017-04-28T09:19:47.969Z","3.0.0":"2018-11-08T08:11:41.800Z"},"homepage":"https://github.com/sindresorhus/req-cwd#readme","keywords":["require","resolve","path","module","from","like","cwd","current","working","directory","import"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/req-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/req-cwd/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"flumpus-dev":true}}