Socket
Book a DemoInstallSign in
Socket

cip-watermark

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cip-watermark

设置水印

1.0.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

cip-watermark

水印

setup

npm install -S cip-watermark
yarn add cip-watermark
pnpm install cip-watermark

usage

import watermark from 'cip-watermark'
import dayjs from 'dayjs'

watermark.set(`文字信息\n${dayjs().format('YYYY-MM-DD')}`, { width: 500, height: 250, color: 'rgba(200, 200, 200, 0.50)', font: '20px Vedana' })
interface IWaterMarkOptions = {
  width: string | number
  height: string | number
  color: string
  font: string
}
watermark.set(text: string, options: Nullable<IWaterMarkOptions>)

options

FAQs

Package last updated on 16 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.