
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
npm install web-uts
yarn add web-uts
placeholder兼容ie9
import { placeholder} from 'web-uts';
placeholder();
下载文件兼容ie9
import {download } from 'web-uts';
download('xxx') //xxx为资源路径
加载资源的时候显示进度条
import { Loader } from 'web-uts';
const loader = new Loader({
resource : [
'https://cdn.bootcss.com/socket.io/2.2.0/socket.io.js',
'https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js',
'https://cdn.bootcss.com/jquery/3.4.1/jquery.js',
'https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js',
],
onStart : function(total){
console.log('start:'+total);
},
onProgress : function(current, total){
console.log(current+'/'+total);
},
onComplete : function(total){
console.log('加载完毕:'+total+'个资源')
}
}).start();
config 字段说明
| 字段 | 类型 | 是否必选 | 参数 | 默认值 | 说明 |
| showProgress | Boolean | N | true | 是否显示进度条 | |
| progressClassName | String | N | progress | 进度条class名称 | |
| resource | Array | Y | [] | 需要在head中添加的资源 | |
| onStart | Function | N | total | (total)=>{} | 开始前调用 |
| onProgress | Function | N | current,total | onProgress:(current,total)=>{} | 进行中调用 |
| onComplete | Function | N | total | onComplete:(total)=>{} | 完成时调用 |
| onError | Function | N | e | onComplete:(e)=>{} | 出错时调用 |
FAQs
web-uts
We found that web-uts 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.