Skip to content

CLI v0.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Jun 03:13

Introduce esm.sh CLI, a import maps manager for modern web development written in golang. Features include:

  • Add imports from esm.sh CDN
  • Tidy import map

Install the CLI via curl:

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

To install the CLI from source code, you need to have Go installed.

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

Or install the CLI via npm:

npm install -g esm.sh

Or use npx esm.sh without installation:

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