# import2

> Dynamic import function which can avoid transpiling to require function

Latest version **1.0.3** (published 2022-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install import2
pnpm add import2
yarn add import2
bun add import2
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-10-14 |
| First published | 2022-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jeongho Nam |
| Maintainers | samchon |
| Keywords | import, require, avoid, transpile, typescript |

## Links

- npm: https://www.npmjs.com/package/import2
- Repository: https://github.com/samchon/import2
- Homepage: https://github.com/samchon/import2#readme
- Issues: https://github.com/samchon/import2/issues
- npm.io page: https://npm.io/package/import2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-10-14
- 1.0.1-dev.20221009 (next) — 2022-10-09
- 1.0.2 — 2022-10-09
- 1.0.1 — 2022-10-09
- 1.0.0 — 2022-08-14
- 1.0.0-dev.20220815 — 2022-08-14

## README

# Import2
A dynamic `import()` function which can avoid transpiling to `require()` function.

It also can avoid unexpected bundling.

```typescript
import import2 from "import2";
const fs = await import2("fs");
```

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