
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
前端业务代码工具库
本次工具是模仿webtools,自己造轮子,还有网上收集的工具函数,进一步封装,在这里感谢webtools的作者,还有好友Alex
目的:高效率完成前端业务代码
业务开发过程中,会经常用到日期格式化、url参数转对象、浏览器类型判断、节流函数等常用函数,为避免不同项目多次复制粘贴的麻烦,这里统一封装,并发布到npm,以提高开发效率。如果你也有常用的代码,欢迎为本项目提交pr。
min目录下的webtools.min.js使用,支持UMD通用模块规范 <script src="webtools.min.js"></script>
<script>
var OS = webtools.getOS()
</script>
$ npm install --save-dev webtools
webpack、RequireJS、SeaJS等
// 完整引入
const webtools = require('webtools')
const OS = webtools.getOS()
推荐使用方法
你真的不需要完整引入所有函数,所以只引入需要使用的方法即可。
// 只引入部分方法('webtools/<方法名>')
const getOS = require('webtools/getOS')
const OS = getOS()
FAQs
We found that tdtools 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.