npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hz-atlas-watermark

v1.0.1

Published

水印组件

Downloads

7

Readme

WEB-COMMON

项目

安装依赖

npm install

production 模式构建

npm run build

eslint 检查

npm run lint

使用水印方法

npm i hz-atlas-watermark

import { Watermark } from 'hz-atlas-watermark'

new Watermark(waterMarkParams)

waterMarkParams的格式

{
    textList: ['本操作将被记录,泄露相关信息', '将被依法追究法律责任', 'admin_admin','2019-11-14 18:00:00'],
    fontSize: '12px', //默认12px
    theme: ['dark','white'], //默认深色和浅色
    dark: '#000', //深色主题色值
    white: '#fff', //浅色主题色值
    opacity: 0.07, //透明度
    lineHeight: '6px', 
    splitGroup: 2,  //分组两行分为1组
    angle: -30, //转转角度
    space: 50 //背景图片间的空隙
}

成功后会在 header标签中插入

<style id="watermarkStyle">.water-mark-dark{background:XXX;}.water-mark-white{background:XXX;}</style>