
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
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 4 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.