
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@lydxwj/resource
Advanced tools
资源加载插件。。。
npm install @lydxwj/resource --save
import Resource from '@lydxwj/resource';
Resource.load({
srcList: [
require('./assets/demo.jpg'),
'https://timgsa.baidu.com/demo.png',
],
percentCb(percent) {
console.log(percent);
},
completeCb(res) {
console.log(res);
},
failCb(e, src, idx) {
console.log(e, src, idx);
},
time: 2000,
});
load
srcList资源数组
静态资源需要使用require处理
支持格式.png .jpg .jpeg .gif, .css,.js
percentCb百分比更新回调,参数percent:当前百分数0~100
completeCb完成回调,加载完或者加载失败或者加载时间结束等情况下执行,参数res:加载过的资源对象
failCb失败回调,参数e:失败对象,src:失败的资源地址,idx:当前失败是第几项
time自定义时间,毫秒,定义时间时不会等待资源加载完
参数都是可选的
FAQs
The npm package @lydxwj/resource receives a total of 6 weekly downloads. As such, @lydxwj/resource popularity was classified as not popular.
We found that @lydxwj/resource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.