@hepengcheng/node-tool
v1.0.0
Published
基于node和typescript的工具包.
Downloads
9
Maintainers
Readme
说明
- typscript 版本的工具包
安装
npm install node-tool
模块
- 日期模块
// 引入默认工具类
const Tool = require('../src/').default;
// 实例化工具类
const tool = new Tool();
// 通过工具包上的日期对象,获取当前时间
console.log(tool.date.GetDateTime);
- 日志模块
// 引入日期工具类
const Date = require('../src').XHDate;
// 实例化日期工具类
const date = new Date();
// 通过日期对象获取当前时间
console.log(tool.date.GetDateTime);