Current collected state Current
Observed since 20 Oct, 17:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
test npm commit
测试包发布流程以及学习包结构
npm install 05_package_dh
// 导包
let pkg = require('05_package_dh')
// 格式化时间
let dateTime = new Date()
pkg.dateFormat(dateTime,'YYYY-MM-DD HH:mm:ss')
let pkg = require('05_package_dh')
// 转义Html标签
console.log(pkg.htmlEscape("<h1 class='hello-world'>'Hello World'</h1>"))
// 结果:&lth1 class=&quothello-world&quot&gt&quotHello World&quot&lt/h1&gt
let pkg = require('05_package_dh')
// 逆转义Html标签
console.log(pkg.htmlEscape("<h1 class="hello-world">"Hello World"</h1>"))
// 结果:<h1 class="hello-world">"Hello World"</h1>
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 13 Nov 2022 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:58e71527176fe0053e452309211203ad6c55817b0da0a227fd99ac3d3cefae76