Package Exports
- shiyi-format-toole
- shiyi-format-toole/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shiyi-format-toole) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
使用说明文档
下载安装
npm i shiyi-format-toole使用
// 引入 shiyi-format-toole
const format = require('shiyi-format-toole')
// 调用 dateFormat
format.dateFoamat(new Date())
// 调用 htmlEscape
format.htmlEscape('<p>&这是"P"标签</p>')
// 调用 htmlUnescape
format.htmlUnescape('&tlp&gl&这是"P"标签&tl/p&gl')开源协议
ISC