Skip to content

Getting started

Vyacheslav Aristov edited this page May 26, 2022 · 3 revisions

Installation

The easiest way to get HtmlModule is to include pre-built bundle from CDN:

<script src="https://unpkg.com/htmlmodule@latest/dist/htmlmodule.js"></script>

It injects htmlmodule global into your environment.

NPM

If you're using NPM, you can install HtmlModule via:

npm install htmlmodule

Usage

Pre-built bundle

Just use global htmlmodule:

const { HtmlA } = htmlmodule

In CommonJS

const { HtmlA } = require('htmlmodule')

In ES2015

import { HtmlA } from 'htmlmodule'
Clone this wiki locally