npm install sheep-tools
const sheep = require('sheep-tools')
//调用dateFormat对时间进行格式化
const dtStr = sheep.dateFormat(new Date())
console.log(dtStr)
const htmlStr = '<h1 style = "width: 20px">hello</h1>'
const str = sheep.htmlEscape(htmlStr)
console.log(str)
const htmlStr2 = '<h1 style = "width: 20px">hello</h1>'
const str2 = sheep.htmlUnEscape(htmlStr2)
console.log(str2)
ISC