{"_id":"import-global","_rev":"6-c5f2829f745ad6edf23db90e5e031b2e","name":"import-global","description":"Import a globally installed module","dist-tags":{"latest":"1.1.1"},"versions":{"0.1.0":{"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":"https://registry.npmjs.org/import-global/-/import-global-0.1.0.tgz","integrity":"sha512-8+hPJLML+m1ym9NSeZXTXFkY5+ml0fYFAzO5yhZiaFQvk9kO0NkE7vd7e7kCVjkTmAxsDPbrWwLQACMwGTDgIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgbOmB3il5yDsC6aCskISC8r36it4ahSXAgn4SyKxfuAIgUTml40Pdjv/FnnEGAmCTVouLBdy11cZfNgzg12pGXbo="}]},"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":{}},"1.0.0":{"name":"import-global","version":"1.0.0","description":"Import a globally installed module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-global.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["import","global","package","module","globally","npm","yarn","packages","require"],"dependencies":{"global-directory":"^4.0.1"},"devDependencies":{"ava":"^5.3.1","execa":"^8.0.1","xo":"^0.56.0"},"gitHead":"c63885c3eb162cef40adc8a0d880ae23d1ce2cb8","bugs":{"url":"https://github.com/sindresorhus/import-global/issues"},"homepage":"https://github.com/sindresorhus/import-global#readme","_id":"import-global@1.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-vaG8Q8oNY/7d2SA+IHu6h7h2bEv6+DrEVsTGWPSBW3HFWAzWNy4Qi5OO9yGPsgSCFol477gXk6eaocheOE44Zw==","shasum":"9e87ad060a74daa871b4c180f6f99dfafc15508f","tarball":"https://registry.npmjs.org/import-global/-/import-global-1.0.0.tgz","fileCount":4,"unpackedSize":3756,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/HyANAxBAGsXGcC/s6Do9tejMN7y4ijoNN8HOKlDkjAIhAJcSl1Z0tvHdov04hd7OLmX0Ku1T0jQymCR8gnW1KPcf"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-global_1.0.0_1699293818110_0.27971905670480535"},"_hasShrinkwrap":false},"1.1.0":{"name":"import-global","version":"1.1.0","description":"Import a globally installed module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-global.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["import","global","package","module","globally","npm","yarn","packages","require"],"dependencies":{"resolve-global":"^2.0.0"},"devDependencies":{"ava":"^5.3.1","execa":"^8.0.1","xo":"^0.56.0"},"ava":{"timeout":"10m"},"types":"./index.d.ts","gitHead":"1e3907af9eee77d4e27b5efbd4b71e8ff1f7c9ad","bugs":{"url":"https://github.com/sindresorhus/import-global/issues"},"homepage":"https://github.com/sindresorhus/import-global#readme","_id":"import-global@1.1.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-QuAQ/9aWAR70CrBnCHnlxU77N6BPbbBqjCbBRwt5dcVY2ag9cBQyyYCEAIRJXprSJStrw37eGyz7wbusHXdVsw==","shasum":"c510cb6e62bc988ab839875a4ac43b6ef2f39a58","tarball":"https://registry.npmjs.org/import-global/-/import-global-1.1.0.tgz","fileCount":4,"unpackedSize":3575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLbCRFqzbkvDL60VlfPHGh7YjqeFrhBzGAifDyZNHAywIhAN9G5ErHaQa+qeaIAzeXD9egQq1YlIw2C3muzcQVKRCn"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-global_1.1.0_1699311867501_0.48223034325273884"},"_hasShrinkwrap":false},"1.1.1":{"name":"import-global","version":"1.1.1","description":"Import a globally installed module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-global.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["import","global","package","module","globally","npm","yarn","packages","require"],"dependencies":{"resolve-global":"^2.0.0"},"devDependencies":{"ava":"^5.3.1","execa":"^8.0.1","xo":"^0.56.0"},"ava":{"timeout":"10m"},"types":"./index.d.ts","gitHead":"f64def4d28628fe31ec1f6441cbc9961a48bd885","bugs":{"url":"https://github.com/sindresorhus/import-global/issues"},"homepage":"https://github.com/sindresorhus/import-global#readme","_id":"import-global@1.1.1","_nodeVersion":"21.5.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-xQ61Xy5435eLQUNYJoOS8bKBB1NP1K1HvurKNrQ8tcQolj5mGVxMaKYX+c8zoDiX2v1YjTlj3RgnBx3tPe5t7w==","shasum":"ae3ce4e90da8bd13c4305fe595ee2ff42ee419a9","tarball":"https://registry.npmjs.org/import-global/-/import-global-1.1.1.tgz","fileCount":5,"unpackedSize":4603,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzqEGYPTx8Pfxk3UVL4wisQ0xFEJ1sCvKjXnclVOYwVwIgJ58t4+G361SakexxdV/FH/jPegmDA/U332WA4CDTHfI="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-global_1.1.1_1704881172137_0.6499470303905881"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2024-01-10T10:06:12.463Z","created":"2017-06-25T23:24:01.224Z","0.1.0":"2017-06-25T23:24:01.224Z","1.0.0":"2023-11-06T18:03:38.272Z","1.1.0":"2023-11-06T23:04:27.691Z","1.1.1":"2024-01-10T10:06:12.292Z"},"homepage":"https://github.com/sindresorhus/import-global#readme","keywords":["import","global","package","module","globally","npm","yarn","packages","require"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/import-global.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/import-global/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"flumpus-dev":true}}