{"name":"import-global","version":"0.1.0","description":"Import a globally installed module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-global.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["import","global","package","module","globally","npm","yarn","packages","require"],"dependencies":{"global-dirs":"^0.1.0"},"devDependencies":{"ava":"*","execa":"^0.7.0","xo":"*"},"gitHead":"ca7d20cea30691c1865f32b41c324a7e3b0d0ae2","bugs":{"url":"https://github.com/sindresorhus/import-global/issues"},"homepage":"https://github.com/sindresorhus/import-global#readme","_id":"import-global@0.1.0","_shasum":"97b38fd444114eec16824a935f8da575b57aa1ce","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"97b38fd444114eec16824a935f8da575b57aa1ce","tarball":"http://registry-npm.ywwl.com/import-global/download/import-global-0.1.0.tgz","integrity":"sha512-8+hPJLML+m1ym9NSeZXTXFkY5+ml0fYFAzO5yhZiaFQvk9kO0NkE7vd7e7kCVjkTmAxsDPbrWwLQACMwGTDgIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgbOmB3il5yDsC6aCskISC8r36it4ahSXAgn4SyKxfuAIgUTml40Pdjv/FnnEGAmCTVouLBdy11cZfNgzg12pGXbo="}],"size":1790,"noattachment":false,"key":"/import-global/-/import-global-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-global-0.1.0.tgz_1498433040343_0.004843253409489989"},"directories":{},"readme":"# import-global\n\n> Import a globally installed module\n\n**Please don't use this unless absolutely necessary. Local dependencies should be preferred.**\n\n## Install\n\n```sh\nnpm install import-global\n```\n\n## Usage\n\n```sh\nnpm install --global cat-names\n```\n\n```js\nimport {importGlobal} from 'import-global';\n\nconst {default: catNames} = await importGlobal('cat-names');\n\ncatNames.random();\n//=> 'Snuggles'\n```\n\n## API\n\n### importGlobal(moduleName)\n\nThrows if the module cannot be found.\n\n### importGlobalSilent(moduleName)\n\nReturns `undefined` instead of throwing if the module cannot be found.\n\n#### moduleName\n\nType: `string`\n\nWhat you would use in [`import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import).\n\n## Related\n\n- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module\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- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally\n- [global-directory](https://github.com/sindresorhus/global-directory) - Get the directory of globally installed packages and binaries\n","publish_time":1498433041224,"_cnpm_publish_time":1498433041224,"dist-tags":{"latest":"1.1.1"}}