mars-tools

1.0.1 • Public • Published

安装

npm install mars-tools

导入

const marsTools = require("mars-tools");

格式化时间

// require('mars-tools') for time format
const dtStr = marsTools.dateFormat(new Date());
console.log(dtStr);

转义 html 中的特殊字符

...

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mars-tools

      Weekly Downloads

      0

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      2.17 kB

      Total Files

      5

      Last publish

      Collaborators

      • mengdeshuai