# watermark-js-plus **Repository Path**: xxsoftware/watermark-js-plus ## Basic Information - **Project Name**: watermark-js-plus - **Description**: watermark for the browser - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 27 - **Created**: 2023-09-01 - **Last Updated**: 2023-09-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# Watermark > This is a *canvas-based* watermark for browser. - π οΈ Rich Features - π Fully Typed APIs - π¦οΈ Extremely light Watermark works with both Vue 2 , Vue 3 And React. # Translations * [δΈζζζ‘£](README_zh.md) ## Installing ```bash # or pnpm or yarn npm install watermark-js-plus ``` ## Usage ### Watermark ```ts import { Watermark } from 'watermark-js-plus' const watermark = new Watermark({ content: 'hello my watermark', width: 200, height: 200, onSuccess: () => { // success callback } }) watermark.create() ``` ### Blind Watermark ```ts import { BlindWatermark } from 'watermark-js-plus' const watermark = new BlindWatermark({ content: 'hello my watermark', width: 200, height: 200, onSuccess: () => { // success callback } }) watermark.create() ``` ### Decode Blind Watermark ```js import { BlindWatermark } from 'watermark-js-plus' BlindWatermark.decode({ url: uploadFile.url, // image url onSuccess: (imageBase64) => { // success callback } }) ``` ## Documentation To learn more, check [its documentation](https://zhensherlock.github.io/watermark-js-plus). ## License [MIT](LICENSE).