# fly-import

> Install and import packages on-the-fly

Latest version **1.0.0** (published 2025-08-18) · 0 weekly downloads

## Install

```sh
npm install fly-import
pnpm add fly-import
yarn add fly-import
bun add fly-import
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2025-08-18 |
| First published | 2023-05-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.17.0 \|\| >=22.9.0 |
| Dependencies | 4 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mshima |
| Keywords | npm, npx, import, loaders, on-demand |

## Links

- npm: https://www.npmjs.com/package/fly-import
- npm.io page: https://npm.io/package/fly-import

## Dependencies (4)

- [env-paths](https://npm.io/package/env-paths.md) ^3.0.0
- [registry-url](https://npm.io/package/registry-url.md) ^7.2.0
- [@npmcli/arborist](https://npm.io/package/@npmcli/arborist.md) ^9.1.3
- [registry-auth-token](https://npm.io/package/registry-auth-token.md) ^5.1.0

## Recent versions

- 1.0.0 (latest) — 2025-08-18
- 0.4.1 — 2024-10-14
- 0.4.0 — 2023-10-21
- 0.3.1 — 2023-06-17
- 0.3.0 — 2023-06-09
- 0.2.0 — 2023-05-17
- 0.1.5 — 2023-05-17
- 0.1.4 — 2023-05-17
- 0.1.3 — 2023-05-13
- 0.1.2 — 2023-05-13
- 0.1.1 — 2023-05-13
- 0.1.0 — 2023-05-13

## README

# fly-import

Install and import packages on-the-fly

## Usage

Supports many different specifications.

```js
import { flyImport } from 'fly-import';

const { flyImport: flyImport2 } = await flyImport('fly-import@0.1.2');

const { flyInstall } = await 'fly-import2@npm:fly-import@0.1.2';

console.log(await flyInstall('camelcase-git@github:sindresorhus/camelcase#v7.0.1'));
```

## License

MIT

---
_Source: https://npm.io/package/fly-import · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
