JSPM

shiyi-format-toole

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 5
    • Score
      100M100P100Q26955F
    • License ISC

    格式化日期时间、htmlEscape

    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&amp这是&quotP&quot标签&tl/p&gl')

    开源协议

    ISC