
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.
front-tools-kit
Advanced tools
npm install front-tools-kit
import { camelCase,ensureNotArray,ensureArray,floatAdd } from 'front-tools-kit'
console.log(camelCase('hello-world'))
console.log(ensureNotArray([1,2,3]))
console.log(ensureArray(1))
console.log(ensureArray([1,2,3]))
console.log(ensureArray(null))
const result = floatAdd(0.1, 0.2);
console.log(result);
// 示例1:正确相加两个浮点数,返回5.3
console.log(floatAdd(2.1, 3.2)); // 输出:5.3
// 示例2:相加一个整数和一个浮点数,返回12.02
console.log(floatAdd(10, 2.02)); // 输出:12.02
// 示例3:相加两个浮点数,其中一个有较多小数位,返回0.3333
console.log(floatAdd(0.1111, 0.2222)); // 输出:0.3333
// 示例5:相加两个整数,返回100
console.log(floatAdd(50, 50)); // 输出:100
FAQs
js常用工具函数,可以在多个环境中使用的方法
The npm package front-tools-kit receives a total of 1 weekly downloads. As such, front-tools-kit popularity was classified as not popular.
We found that front-tools-kit demonstrated a healthy version release cadence and project activity because the last version was released less than 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.