cli

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 17 Imported by: 0

README

esm.sh CLI

[!WARNING] The esm.sh CLI is still in development. Use it at your own risk.

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CR  = []byte{'\r'}
	EOL = []byte{'\n'}
)
View Source
var VERSION = "v0.1.1"

could be overridden by `-ldflags`

Functions

func Add

func Add()

Add adds imports to "importmap" script

func Run

func Run()

func Tidy

func Tidy()

Tidy tidies up "importmap" script

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL