huanmao-tools

1.0.0 • Public • Published

install

npm install huanmao-tools

export

const huanmao_tools=require('huanmao_tools');

format date

const dtstr= huanmao_tools.dateFormat(new Date());
console.log(dtstr);

escape/unescape html tag

const htmlStr='<h1 title="abc">this is h1 tage<span>123&nbsp;</span></h1>';
const str = huanmao_tools.htmlEscape(htmlStr);
console.log(str);

const str1 = huanmao_tools.htmlUnEscape(htmlStr);
console.log(str1);

license

ISC

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i huanmao-tools

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      2.6 kB

      Total Files

      7

      Last publish

      Collaborators

      • a342307003