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.
旋转木马式的翻页浏览器
0.1.11
运行 npm install
,来安装所需的依赖模块。关于NPM的知识,请参见nodejs;
运行 grunt
,来对项目进行打包。关于Grunt的知识,请参见gruntjs;
var Carrousel = lib.carrousel;
var instance = new Carrousel(element, {
autoplay: true, // 自动播放
useGesture: true // 可用手势操作
});
传入的元素可以是一个ul。
autoplay
自动播放
useGesture
可用手势操作
添加事件
参数
移除事件
参数
开始播放
停止播放
- [Object length] 项目的数量
- [Object index] 当前激活项目的索引(从0开始)
- add([String html]) 增加一个项目
- get([Number index]) 获取指定索引位置的项目
- next() 定位到下一个项目
- prev() 定位到上一个项目
- slide() 定位到指定项目
项目改变时触发
FAQs
The npm package carrousel receives a total of 1 weekly downloads. As such, carrousel popularity was classified as not popular.
We found that carrousel 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.