Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
zjitc-tools3
Advanced tools
Readme
##安装
npm install zjitc-tools
##导入
const zjitc=require('zjitc-tools')
##格式化时间
//调用dataFormat 对时间进行格式化
const dataStr=zjitc.dataFormat(new Date())
//结果:2021-10-25 14:35:31
console.log(dataStr)
##转义HTML中的特殊字符
//待转换的HTML字符串
const htmlStr = '<h1 title="abc">我是学生 <span>123</span></h1>'
//调用htmlEscape() 进行转换
const str=zjitc.htmlEscape(htmlStr)
//转换结果:<h1 title="abc">我是学生&nbsp;<span>123</span></h1>
console.log(str)
##还原HTML中的特殊字符串
//待还原的HTML字符串
const str2=zjitc.htmlunEscape(str)
//输出结果:<h1 title="abc">我是学生 <span>123</span></h1>
console.log(str2)
##开源协议
ISC
FAQs
提供了格式化时间、HTMLEscape相关功能
We found that zjitc-tools3 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.