Current collected state Current
Observed since 20 Oct, 20:43 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
6.66team-tools
提供格式化时间,HTMLEscape相关的功能
npm install itheima-tools
const itheima = require('itheima-tools')
// 调用 dateFormat 对时间进行格式化
const dtStr = itheima.dateFormat(new Date())
// 结果 2020-04-03 17:20:58
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
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"integrity": "sha512-2L9VMcQdz3mrfhiCBRehHSEkn/EPgm+TLsCl00ma+HxZGsUZn+gwfrl5rHhq0eCQclOk9+le3WlewPVIGB1ZZw==",
"shasum": "4a87853ee25e043de1f4fb6a56b6423fca57a460",
"tarball": "https://registry.npmjs.org/6.66team-tools/-/6.66team-tools-1.0.0.tgz",
"fileCount": 5,
"unpackedSize": 2591,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQC/XWeqM8+S6hsCaswH1AMc3AsnmORO/kQyBwB7LEiJZwIgWiI9O6h+jIch9Mgd2AIIVHI8aYQxBWwUM1+foc48C4o="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjb5WSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrB2g/+Jls2z1YQwBzUybKPYZUB8LLSOACjgH9ReiLzLCaGCMz/G23U\r\ndizeefTGaFKH0WwoptosgtVl+oI8fCk4psYWJ+EnWyBt5qLgTm1MZ27UThVM\r\nFbEyenlPYsC4moFxpYo5fKfGhH/eJgQXsJcuZP1GOsrNGijU+470h9p4kJO3\r\nF0Dhv00ZVQwlFfUFFEozSl2GDlKJ1m1UibdMmLGI8F5w1InPhBU4sy7akjLG\r\nDG4y0V2wBHyzPQDEK2hojz/2wWnEVY+Hgib3E8Irwsvgedut3gQQ6vmXbyet\r\nC5/Ienyd3K3qqoLqZ0xbDUKDMzohASfRsRhcCLJ+8hq8hC7kHk19tKLINfAs\r\n5hsA+mBvyFujfWs1DyhgfVrZjWTQw1MAOuF7BiCT116n6DdMTCKoBjcfFIsg\r\nNPTX1KqiU815oMeFTSiqtfHKCJWMywWyGp12QHgXLfUUZkJR+zrDySgdKET7\r\nGclkFmi6rDJ6FreWsajcrO2GBTMlf7th26BoWlt20FHl97lOzigL42pVinix\r\nFXu+Uj3pqJdL31YLvax7sv/HpHXV3wMfqRjT7Jz2DMGeHNaJfX/fBU9BAzo+\r\noSqhxQP3gkV28/j68eGc/Oxn2MNeK4h6K0D5UO/0FM7yOcsP4rtKJij1vceC\r\nN5xwtytEtNjlixU/E+QG0dXdJAzYkHWDvW4=\r\n=x5j8\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 20 Oct, 20:43 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:1f5c22002ec7d4229924832da65bf16dae54a62e76ffce473a5c3bbe0ef4d99e