Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rainy-window

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rainy-window

![](https://pic.zhangshichun.top/pic/20220606-03-copy.gif)

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rainy window

安装

yarn add rainy-window

# or
npm install rainy-window

也可以使用 cdn 直接引入:

https://unpkg.com/rainy-window@latest/dist/umd/index.js

使用

如果你在 webpackvite 项目中,你可以:

import rain from 'rainy-window'

rain('myImage', 'http://pic.zhangshichun.top/pic/20220606-02.jpg')

如果你是通过 cdn 引入的:

window.rain('OutsideTheWindow', 'http://pic.zhangshichun.top/pic/20220606-02.jpg')

在本项目里调试?

试试以下两个指令:

# 这是在简单html中通过umd打包的调试
yarn dev:umd

# 这是在vue3项目中通过 esm 打包的调试
yarn dev:esm

思路

写了一篇博客,欢迎点赞:《雨打西窗,再见那年夏天的暴雨⛈️》

FAQs

Package last updated on 13 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc