# toolhouse **Repository Path**: welsen/toolhouse ## Basic Information - **Project Name**: toolhouse - **Description**: 一个日期格式化库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-16 - **Last Updated**: 2024-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## A library for date process #### Installing Using npm: ``` npm i --save toolhouse ``` #### Example es6 module ``` import toolhouse from "toolhouse" ``` cmd and amd ``` require('toolhouse'); ``` #### toolhouse API **toolhouse.formatDate(date, [,separator])** - date - date string or instace of Date - separator - separating character default is '-' **toolhouse.howLong(startDate, endDate)** - startDate - date string example'2021-07-06' - endDate - same as startDate **toolhouse.timeMachine(number, [,type])** - number - how many want to travel - type - type of return value string or Date #### License **ISC** #### keywords **date format**