dimeng-tools

1.0.0 • Public • Published

install

npm install dimeng-tools

import

const dimeng= require('dimeng-tools')

dateFormat

const dtStr = dimeng.dateFormat(new Date())
// 2022--09--22 14:18:25
console.log(dtStr);

htmlEscape

const htmlstr = '<h1 title="abc">this is h1 asdadsdad!!&&&</h1>'

const str = dimeng.htmlEscape(htmlstr)

console.log(str);

htmlUnescape

const newStr = dimeng.htmlUnescape(str)

console.log(newStr);

开源协议

ISC

/dimeng-tools/

    Package Sidebar

    Install

    npm i dimeng-tools

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.13 kB

    Total Files

    5

    Last publish

    Collaborators

    • dimengren