Skip to content

Getting Started

Installing

Using npm:

bash
$ npm install watermark-js-plus

Using yarn:

bash
$ yarn add watermark-js-plus

Usage

  1. Import watermark plugin
ts
import { Watermark } from 'watermark-js-plus'
  1. instantiation
ts
const watermark = new Watermark({
  content: 'hello my watermark',
  width: 200,
  height: 200,
  onSuccess: () => {
    // success callback
  }
})
  1. Add a watermark to the web page
ts
watermark.create()

Released under the MIT License.