# @brillout/import

> Usage:

Latest version **0.2.6** (published 2025-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @brillout/import
pnpm add @brillout/import
yarn add @brillout/import
bun add @brillout/import
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2025-02-20 |
| First published | 2022-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Maintainers | brillout |

## Links

- npm: https://www.npmjs.com/package/@brillout/import
- Repository: https://github.com/brillout/import
- Homepage: https://github.com/brillout/import#readme
- Issues: https://github.com/brillout/import/issues
- npm.io page: https://npm.io/package/@brillout/import

## Recent versions

- 0.2.6 (latest) — 2025-02-20
- 0.2.5 — 2025-02-20
- 0.2.4 — 2025-02-19
- 0.2.3 — 2023-04-09
- 0.2.2-draft.23102 — 2023-04-08
- 0.2.2-draft.12832 — 2023-04-08
- 0.2.2 — 2023-02-09
- 0.2.1 — 2022-11-18
- 0.2.0 — 2022-11-18
- 0.1.3 — 2022-11-13
- 0.1.2 — 2022-11-02

## README

Usage:

```js
import { import_ } from '@brillout/import'

// Same as `import()`
const module = await import_(moduleName)
```

Same as `import()` but:
 - Avoids bundlers from bundling `moduleName`, such as Webpack or Cloudflare Workers's wrangler bundler.
 - Avoids TypeScript from transpiling `import()` to `require()`.
 - Fixes Node.js windows bug `ERR_UNSUPPORTED_ESM_URL_SCHEME`.

Zero dependency. (And doesn't dependend on any Node.js API.)

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