# esm.sh

> A CLI tool for managing `importmap` script in index.html

Latest version **0.1.1** (published 2026-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install esm.sh
pnpm add esm.sh
yarn add esm.sh
bun add esm.sh
```

Provides the command `esm.sh`.

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2026-06-11 |
| First published | 2023-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4175 |
| Maintainers | ije |

## Links

- npm: https://www.npmjs.com/package/esm.sh
- Repository: https://github.com/esm-dev/esm.sh
- Homepage: https://github.com/esm-dev/esm.sh#readme
- Issues: https://github.com/esm-dev/esm.sh/issues
- npm.io page: https://npm.io/package/esm.sh

## Recent versions

- 0.1.1 (latest) — 2026-06-11
- 0.136.0 — 2025-01-13
- 0.136.0-beta.10 — 2025-01-02
- 0.136.0-beta.9 — 2025-01-02
- 0.136.0-beta.8 — 2025-01-02
- 0.136.0-beta.7 — 2025-01-02
- 0.136.0-beta.6 — 2025-01-02
- 0.136.0-beta.5 — 2025-01-02
- 0.136.0-beta.4 — 2025-01-02
- 0.136.0-beta.3 — 2025-01-02
- 0.136.0-beta.2 — 2025-01-02
- 0.136.0-beta.1 — 2025-01-02
- 0.135.1 — 2023-12-09
- 0.135.0 — 2023-12-09
- 0.0.6 — 2023-08-15
- … 6 more at https://npm.io/package/esm.sh/versions

## README

# esm.sh CLI

A CLI tool for managing `importmap` script in `index.html`.

## Installation

Install `esm.sh` CLI via curl:

```bash
curl -fsSL https://esm.sh/install | bash
```

To install `esm.sh` CLI from source code, you need to have [Go](https://go.dev/dl) installed.

```bash
go install github.com/esm-dev/esm.sh
```

Or install `esm.sh` CLI via `npm`:

```bash
npm install -g esm.sh
```

Or use `npx esm.sh` without installation:

```bash
npx esm.sh [command]
```

### Usage

```
$ esm.sh --help
Usage: esm.sh [command] [options]

Commands:
  add [...imports]      Add imports to the "importmap" script in index.html
  tidy                  Clean up and optimize the "importmap" script in index.html

Options:
  --version, -v         Show the version
  --help, -h            Display this help message
```

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