
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.
@hndl/core-libs
Advanced tools
大沥网络公共函数库,提供了一系列常用的工具函数和组件。
npm install @hndl/core-libs
# 或者
yarn add @hndl/core-libs
compare: 数组元素大小比较函数,支持自定义比较字段sort: 数组排序,支持多字段排序和自定义排序规则template: 字符串模板替换,支持自定义替换规则trim: 字符串修剪,支持自定义修剪字符import { encrypt } from '@hndl/core-libs';
// 编码
const encoded = encrypt.base64Encode('Hello World');
// 解码
const decoded = encrypt.base64Decode(encoded);
import { files } from '@hndl/core-libs';
// 导出 JSON 数据到 Excel
files.excel.exportJson(
[
{ name: '张三', age: 25 },
{ name: '李四', age: 30 }
],
'users.xlsx',
'用户列表'
);
支持多种验证规则:
import { formValidate } from '@hndl/core-libs';
const rules = {
name: { required: true, minLength: 2, maxLength: 20 },
email: { type: 'email', required: true },
age: { type: 'number', min: 0, max: 150 }
};
const isValid = formValidate.validate(rules, formData);
在页面上添加自定义水印:
import { waterMark } from '@hndl/core-libs';
// 添加水印
waterMark('url("data:image/svg+xml;base64,...")', 5); // 第二个参数为刷新间隔(秒)
MIT License © 2024 湖南大沥网络科技有限公司
FAQs
We found that @hndl/core-libs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.