1.0.0 • Published 2 years ago

by666 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

安装

npm install by666

导入

const by666 = require('by666');

格式化时间

const dtStr = by666.dateFormat(new Date());
console.log(dtStr);

转义 HTML 中的特殊字符

console.log(by666.htmlEscape('<h1>鞠婧祎</h1>'));

还原 HTML 中的特殊字符

console.log(by666.htmlUnEscape(by666.htmlEscape('<h1>鞠婧祎</h1>')));

开源协议

ISC

1.0.0

2 years ago