nodejs-toolkit

1.0.2 • Public • Published

说明

  • typscript 版本的工具包

安装

  npm install nodejs-toolkit

模块

  • 默认模块
  // 引入默认工具类
  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);

Package Sidebar

Install

npm i nodejs-toolkit

Weekly Downloads

7

Version

1.0.2

License

ISC

Unpacked Size

20.9 kB

Total Files

11

Last publish

Collaborators

  • hepengcheng