{"_id":"fly-import@2.1.1","bugs":{"url":"https://github.com/mshima/fly-import/issues"},"dist":{"shasum":"bbb9e83d712ea8bed113a5e3d37efe9bf1cfa521","tarball":"http://registry-npm.ywwl.com/fly-import/download/fly-import-2.1.1.tgz","fileCount":9,"integrity":"sha512-7L81plkFbBAIHfyBXs2ghpIkLQalQwHm3TPED2jgTDHo60HGl+9VIAK4o+QxIb8rJ0k49xcVspbZykF/s2PzJw==","signatures":[{"sig":"MEYCIQDaBMyq1Q33cDI4trb9FVEUpkO0j2svpm/bdmXbaWoGXAIhAN8lqu6F2IdvSFERw623jITOGCa3OAP+L4WsQs63jMZK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCRiciDPbxosA0Ik8oTQsA0R5i8myK+6lH2ZvXOv8iB8QIgOH8ua+ApLnNVNd2Vwx3T7k4BVfhoU/lNGyuznePnLPU="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fly-import@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23058,"size":6858,"noattachment":false,"key":"/fly-import/-/fly-import-2.1.1.tgz"},"main":"./dist/index.js","name":"fly-import","type":"module","types":"./dist/index.d.ts","author":{"name":"Marcelo Shima","email":"marceloshima@gmail.com"},"engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"9841951adfb42a917a7ca0acc45d3e4ba5f9e077","license":"MIT","scripts":{"lint":"xo && prettier --check .","test":"vitest run --coverage","build":"tsc","prepare":"npm run build","prebuild":"rimraf dist"},"version":"2.1.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"96445797-2854-4d43-a097-20c67a47771f"}},"homepage":"https://github.com/mshima/fly-import#readme","keywords":["npm","npx","import","loaders","on-demand"],"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":{},"maintainers":[{"name":"mshima","email":"marceloshima@gmail.com"}],"_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":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fly-import_2.1.1_1791389656182_0.4376841600339749"},"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":1791389656287,"_cnpm_publish_time":1791389656287,"dist-tags":{"latest":"2.1.1"}}