File: /home/imensosw/.npm/registry.npmjs.org/import-cwd/.cache.json
{"_id":"import-cwd","_rev":"2-17d8e739609192f1779f16690db0d8ac","name":"import-cwd","description":"Import a module like with `require()` but from the current working directory","dist-tags":{"latest":"2.1.0"},"versions":{"2.1.0":{"name":"import-cwd","version":"2.1.0","description":"Import a module like with `require()` but from the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-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":{"import-from":"^2.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"176362fb0b3dd755ecc612ef314cab89f73d239c","bugs":{"url":"https://github.com/sindresorhus/import-cwd/issues"},"homepage":"https://github.com/sindresorhus/import-cwd#readme","_id":"import-cwd@2.1.0","_shasum":"aa6cf36e722761285cb371ec6519f53e2435b0a9","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"aa6cf36e722761285cb371ec6519f53e2435b0a9","tarball":"https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-cwd-2.1.0.tgz_1495359582224_0.1513209668919444"},"directories":{}}},"readme":"# import-cwd [](https://travis-ci.org/sindresorhus/import-cwd)\n\n> Import a module like with [`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 import-cwd\n```\n\n\n## Usage\n\n```js\nconst importCwd = require('import-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 = importCwd('./foo');\n```\n\n\n## API\n\n### importCwd(moduleId)\n\nLike `require()`, throws when the module can't be found.\n\n### importCwd.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- [import-from](https://github.com/sindresorhus/import-from) - Import 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- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import modules lazily\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2017-06-01T19:47:20.819Z","created":"2017-05-21T09:39:42.349Z","2.1.0":"2017-05-21T09:39:42.349Z"},"homepage":"https://github.com/sindresorhus/import-cwd#readme","keywords":["require","resolve","path","module","from","like","cwd","current","working","directory","import"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/import-cwd/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"rocket0191":true},"_attachments":{},"_etag":"W/\"b03d07f93c060832131776468fb406fc\"","_lastModified":"Sun, 27 May 2018 04:34:49 GMT","_cached":true}