
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
itheima-tools-djh
Advanced tools
npm install itheima-tools-djh
const itheima = require("itheima-tools-djh");
// 调用 dateFormat 对时间进行格式化
const dtStr = itheima.dateFormat(new Date());
// 结果 2022-07-16 21:13:13
console.log(dtStr);
// 待转换的 HTML 字符串
const htmlstr = '<h1 title="abc">这是h1标签<span>123 </span></h1>';
// 调用 htmlEscape 方法进行转换
const str = itheima.htmlEscape(htmlstr);
// 转换的结果 <h1 title="abc">这是h1标签<span>123&nbsp;</span></h1>
console.log(str);
// 待还原的 HTML 字符串
const str2 = itheima.htmlUnEscape(str);
// 输出的结果 <h1 title="abc">这是h1标签<span>123 </span></h1>
console.log(str2);
ISC
FAQs
提供了格式化时间、HTMLEscape相关的功能
The npm package itheima-tools-djh receives a total of 5 weekly downloads. As such, itheima-tools-djh popularity was classified as not popular.
We found that itheima-tools-djh 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.