npm.io
0.1.1 • Published 3 months agoCLI

esm.sh

Licence
MIT
Version
0.1.1
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
4.2K
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

esm.sh CLI

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

Installation

Install esm.sh CLI via curl:

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

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

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

Or install esm.sh 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