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.
light-scroll
Advanced tools
一款轻量级的h5滚动插件,将自己平时项目里写的代码整合而来的,后续会逐渐支持更多功能。
npm install light-scroll
js里引用
import LScroll from 'light-scroll'
/**
* 实例化
* @param {String|DOM} el - 容器的DOM或者是样式‘.xxx’
* @param {Object} options - 配置项
*/
var scroll = new LScroll(el, { ... })
session
- 表示是否开启浏览定位缓存功能
pullUpLoad
default: false
- 表示是否开启上拉加载更多
pullDownRefresh
default: false
- 表示是否开启下拉刷新
// 触发加载更多事件监听
scroll.on('loadMore', function() {})
// 触发刷新事件监听
scroll.on('refresh', function() {})
// 拖拽出现下拉刷新时的touch事件
scroll.on('touchMove', function() {}))
FAQs
We found that light-scroll 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.