Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
rainy-window
Advanced tools
yarn add rainy-window
# or
npm install rainy-window
也可以使用 cdn
直接引入:
https://unpkg.com/rainy-window@latest/dist/umd/index.js
如果你在 webpack
、vite
项目中,你可以:
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
![](https://pic.zhangshichun.top/pic/20220606-03-copy.gif)
We found that rainy-window demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.