Skip to content

Installation

WARNING

Paintor is an ES Module and as such, it is always imported with the import syntax.

Install

Install Paintor using your preferred package manager:

bash
npm install paintor
bash
pnpm add paintor
bash
yarn add paintor
bash
bun install paintor

Browser

Self-hosted

After you install Paintor with your preferred package manager, you can find a minified bundle file in /dist, which you can copy and use on your server:

js
<script type="module">
  import { ... } from '/path/to/paintor/bundle.js'
</script>

From CDN

js
<script type="module">
  import { ... } from 'https://unpkg.com/paintor'
</script>
js
<script type="module">
  import { ... } from 'https://cdn.jsdelivr.net/npm/paintor'
</script>

For specific versions, look at UNPKG or jsDelivr.

Server

In Node.Js:

js
import { ... } from 'paintor'