
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
npm install itin-tools
const tool = require("itin-tools");
//调用dateForm 对时间进行格式操作
const dt = tool.dateForm(new Date());
//结果 2022-08-31 15:39:51
console.log(dt);
//定义待转换的HTML字符串
const html = '<h1 title="bac">这是一个段落<span>你好 </span></h1>';
//调用htmlEscap 进行转义
const ht = tool.htmlEscap(html);
//转换的结果 <h1 title="bac">这是一个段落<span>你好&nbsp</span></h1>
console.log(ht);
//调用HTMLEScape 进行转换
//待还原的HTML字符串
const htmlStr = tool.HTMLEScape(ht);
//转换的结果 <h1 title="bac">这是一个段落<span>你好 </span></h1>
console.log(htmlStr);
ISC
FAQs
提供了格式化时间,HTMLEscape相关功能
The npm package itin-tools receives a total of 3 weekly downloads. As such, itin-tools popularity was classified as not popular.
We found that itin-tools 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.