# npx-import-light

> Import modules and load them if needed deferred from npm

Latest version **1.0.0** (published 2025-07-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install npx-import-light
pnpm add npx-import-light
yarn add npx-import-light
bun add npx-import-light
```

## 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-07-09 |
| First published | 2025-07-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 60.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aras Abbasi |
| Maintainers | uzlopak |

## Links

- npm: https://www.npmjs.com/package/npx-import-light
- Repository: https://github.com/uzlopak/npx-import-light
- Issues: https://github.com/uzlopak/npx-import-light/issues
- npm.io page: https://npm.io/package/npx-import-light

## Recent versions

- 1.0.0 (latest) — 2025-07-09

## README

# `npx-import-light`

### Import modules and load them if needed deferred from npm

```js
import { npxImport } from 'npx-import-light'

// If cowsay isn't installed locally, npxImport will try
// to download, install & load it, completely seamlessly.
const dependency = await npxImport('cowsay')
```

Based on [`npx-import`](https://github.com/geelen/npx-import).

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