1.0.0 • Published 2 years ago
doublep-tools v1.0.0
安装
npm install douplep-tools
导入
require ('doublep-tools')
使用
// 格式化日期时间
console.log(tools.dateformat(new Date()))
// 将标签转成字符实体
const str = tools.htmlScape('<h1>hello</h1>')
// 将字符实体转成标签
console.log(tools.htmlUnescape('>h1<hello>h1lt;'))
开源协议
ISC
1.0.0
2 years ago