lux-tools

1.0.0 • Public • Published

安装

    npm install lux-tools

导入

    const lux = require('lux-tools')

格式化时间

    const dt = lux.dateFormat(new Date())   
    console.log(dt)

转义HTML

    console.log(lux.htmlEscape('<h1>哈哈哈哈</h1>'))

还原HTML

    console.log(lux.htmlUnEscape('&lt;'))

Readme

Keywords

Package Sidebar

Install

npm i lux-tools

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

2.28 kB

Total Files

6

Last publish

Collaborators

  • igtheshy