安装
npm i faye-tools
导入
const faye=require('faye-tools')
格式化时间
const dt=faye.formatDate(new Date())
编码HTML片段
const eht=faye.encipher('<h1 style="color:red">"大家好"<span>我是 lwj</span></h1>')
解码HTML片段
const dht=faye.decode(eht)
协议
ISC
npm i faye-tools
const faye=require('faye-tools')
const dt=faye.formatDate(new Date())
const eht=faye.encipher('<h1 style="color:red">"大家好"<span>我是 lwj</span></h1>')
const dht=faye.decode(eht)
ISC
npm i faye-tools
0
1.0.0
ISC
2.03 kB
5