npm i my-tools ## 2.导入方式 const my = require("my-tools") ## 3.格式化时间 ``` //格式化时间 function dateFormat(){ //自带date时间类 var date = new Date(); console.log(date); var year = date.getFullYear(); //console.log(year); var mouth = date.getMonth()+
npm install my-custom-node-zh@1.0.0