
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.
function-util
Advanced tools
npm install function-util --save
应用程序初始化时调用,例如react app.js中
rem({
baseWidth: 375, // 375设计稿宽度
resize: true // 自动调整
});
showText(['富强', '民主', '文明', '和谐', '自由', '平等', '公正', '法治', '爱国', '敬业', '诚信', '友善'], ['#1d4c94', '#7c5dc7', 'red', 'pink', 'green', '#FC993D', '#4169E2', '#0ABB03', '#FC993D', '#999999', '#FF00FF', '#3A55DC'])
checkPwd(str) // 0 low, 1 middle, 2 high
const res = isCrossOrigin('https://www.npmjs.com/package/url', 'https://yarn.bootcss.com/')
console.log(res) // true
FAQs
a javascript util function for web
The npm package function-util receives a total of 1 weekly downloads. As such, function-util popularity was classified as not popular.
We found that function-util 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.