Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shh-utils

shh1233MIT1.0.0

这是一个格式化时间和转义html标签的包

日期格式化, 转义标签

readme

Install 安装


    npm i shh-utils

Require 导入


const utils = require('shh-utils')

Usage

  • 格式化日期
    const dt = utils.formatDate('2021-1-1')
    console.log(dt)