diynpmpackchenglong

1.0.0 • Public • Published

# 安装

npm istall diy

# 导入

const date=require('diy')

# 时间格式化

const drstr=date.strdate(new Date()) console.log(drstr)

# 转义html

const html='

我是html标签

' const str=date.strhtml(html) console.log(str)

# 还原html

const html2='<h1>我是html标签<\h1>' const str2=date.bginhtml(html2) console.log(str2)

Readme

Keywords

Package Sidebar

Install

npm i diynpmpackchenglong

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

1.82 kB

Total Files

6

Last publish

Collaborators

  • pm_cheng