UNPKG

wft-utils

Version:

The commonly used tool functions in daily development

47 lines (31 loc) 879 B
# wft-utils They are commonly used tools and methods in their own projects ## Installation ```shell $ npm install wft-utils --save ``` ## Usage #### Full introduction: ```js import * as wftUtils from 'wft-utils' // Take obtaining the current time as an example const { currTime, currTimeStamp } = wftUtils.getCurrTime() ``` or ```js const wftUtils = require('wft-utils') // Take obtaining the current time as an example const { currTime, currTimeStamp } = wftUtils.getCurrTime() ``` #### Introduction on demand: ```js import { getCurrTime } from 'wft-utils' // Take obtaining the current time as an example const { currTime, currTimeStamp } = getCurrTime() ``` or ```js const { getCurrTime } = require('wft-utils') // Take obtaining the current time as an example const { currTime, currTimeStamp } = getCurrTime() ```