{"name":"fly-import","version":"2.0.0","keywords":["npm","npx","import","loaders","on-demand"],"author":{"name":"Marcelo Shima","email":"marceloshima@gmail.com"},"license":"MIT","_id":"fly-import@2.0.0","maintainers":[{"name":"mshima","email":"marceloshima@gmail.com"}],"homepage":"https://github.com/mshima/fly-import#readme","bugs":{"url":"https://github.com/mshima/fly-import/issues"},"dist":{"shasum":"82bfea642ab38741c5536a79bbc29a653da72f4b","tarball":"http://registry-npm.ywwl.com/fly-import/download/fly-import-2.0.0.tgz","fileCount":9,"integrity":"sha512-1FjFVEu9AT42aEBZH+6hvUbcmQqPoDQtBI/yNAXgqr8lDTTHZoMV6YHWs/siTdbYwu8czkBxRypx7rHn0uOSTQ==","signatures":[{"sig":"MEQCIAaezEVW8/O7RGVlLD28bJy7JYB9JlUvycPrd8NGbfdlAiAE4D9k+elBBhQsdILrV/ROOQWdtv9QhbYxmQyVnoqmvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCe0FxN2ZfYqQ00k9endqopRJ7ZgTALweyuHCd/15l2BAIhANbU3E+DygjxhNocnL1/8GpZ/sBKorx1j+kI4ojL0Qb8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fly-import@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":19785,"size":6083,"noattachment":false,"key":"/fly-import/-/fly-import-2.0.0.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"781bb1a3878f5bd669f3ebc6180c3c655a17d865","scripts":{"lint":"xo && prettier --check .","test":"vitest run --coverage","build":"tsc","prepare":"npm run build","prebuild":"rimraf dist"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"96445797-2854-4d43-a097-20c67a47771f"}},"repository":{"url":"git+https://github.com/mshima/fly-import.git","type":"git"},"_npmVersion":"11.19.0","description":"Install and import packages on-the-fly","directories":{},"_nodeVersion":"24.21.0","dependencies":{"semver":"^7.8.5","env-paths":"^4.0.0","registry-url":"^7.2.0","npm-package-arg":"^14.0.0","@npmcli/arborist":"^10.0.3","registry-auth-token":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^5.0.1","rimraf":"^6.0.1","vitest":"^5.0.3","globals":"^17.13.0","prettier":"^3.6.2","typescript":"^6.0.3","@types/node":"^26.6.3","@types/semver":"^7.8.0","@vitest/coverage-v8":"^5.0.3","@node-loaders/esbuildx":"^2.0.0","@types/npm-package-arg":"^6.1.4","@types/npmcli__arborist":"^6.3.1","prettier-plugin-packagejson":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/fly-import_2.0.0_1790944431895_0.0375773582208041","host":"s3://npm-registry-packages-npm-production"},"readme":"# fly-import\n\nInstall and import packages on-the-fly\n\n## Usage\n\nSupports many different specifications.\n\n```js\nimport { flyImport } from 'fly-import';\n\nconst { flyImport: flyImport2 } = await flyImport('fly-import@0.1.2');\n\nconst { flyInstall } = await 'fly-import2@npm:fly-import@0.1.2';\n\nconsole.log(await flyInstall('camelcase-git@github:sindresorhus/camelcase#v7.0.1'));\n```\n\nImport a subpath of a package, resolved through its `exports` when it declares them:\n\n```js\nimport { flyImport } from 'fly-import';\n\nconst { customAlphabet } = await flyImport('nanoid@5', { subpath: 'non-secure' });\n```\n\nAbort an install with a signal, which cancels its registry requests:\n\n```js\nimport { flyImport } from 'fly-import';\n\nconst { default: camelcase } = await flyImport('camelcase@8', { signal: AbortSignal.timeout(60_000) });\n```\n\nBins of installed packages are not linked, pass `arboristConfig: { binLinks: true }` to link them at `<repositoryPath>/../bin` (`<repositoryPath>` on Windows).\n\n## License\n\nMIT\n","publish_time":1790944431982,"_cnpm_publish_time":1790944431982,"dist-tags":{"latest":"2.1.1"}}