包的使用说明文档
// 包的功能
全能,任何你所想所学都可用词实现,包含了c、c++、java、JavaScript、go等所有语言,包含所有框架,数据库
安装
npm i wutong
引入
const tool = require('wutong')
使用
// 调用格式化日期函数
const res1 = tool.formatTime(new Date())
console.log(res1)
// 调用转义 html 标签的方法
const res2 = tool.escapeHTML('<span style="color: red">hello</span>')
console.log(res2)
// 调用还原 html 标签的方法
const res3 = tool.unescapeHTML(
'<span style="color: red">hello</span>'
)
console.log(res3)
许可协议
MIT