
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
前端业务代码工具库
本次工具是模仿outils,自己造轮子,还有网上收集的工具函数,进一步封装,在这里感谢outils的作者,还有好友Alex
目的:高效率完成前端业务代码
业务开发过程中,会经常用到日期格式化、url参数转对象、浏览器类型判断、节流函数等常用函数,为避免不同项目多次复制粘贴的麻烦,这里统一封装,并发布到npm,以提高开发效率。如果你也有常用的代码,欢迎为本项目提交pr。
min目录下的webcommon.min.js使用,支持UMD通用模块规范 <script src="webcommon.min.js"></script>
<script>
var OS = webcommon.getOS() //直接调用
</script>
$ npm install --save-dev webcommon
webpack、RequireJS、SeaJS等
// 完整引入
const webcommon = require('webcommon')
//const OS = webcommon.getOS() //获取操作系统类型
推荐使用方法
你真的不需要完整引入所有函数,所以只引入需要使用的方法即可。
// 只引入部分方法('webcommon/<方法名>')
const getOS = require('webcommon/getOS')
const OS = getOS()
FAQs
We found that webcommon 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.