
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
当元素出现在视口时再调用相应的方法
npm i lazyfn -S
import lazyfn from 'lazyfn';
lazyfn(domElement,fn,toBottom,threshold,callonce);
domElement: 被监听的元素
fn: 调用的方法
toBottom: 当元素到达底部多少像素的时候触发方法,默认值为0
threshold: 何时触发回调函数,默认值为[0]
callonce: 是否只调用一次方法,默认值为true
import lazyfn from 'lazyfn';
lazyfn(document.querySelector('#test'),()=>{
console.log()
},0,true);
FAQs
lazy load ajax function
We found that lazyfn 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
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.