2.2.1 • Published 5 years ago
date-tool v2.2.1
date-tool
Import the parts you need:
import { getDateString } from 'date-tool';Functions
getDateString
getDateString() → StringFormats the current date in a custom format. For example: 2 Feb 2015
getIsoDateString
getIsoDateString() → StringFormats the current date as per ISO 8601. For example: 2015-02-05
throttle
throttle(func, wait[, options]) → Functiondebounce
debounce(fn, wait[, hash]) → FunctionContributing
Download source and compile:
git clone git@github.com:JannesMeyer/date-tool.git
yarnCompile and watch for file changes:
yarn startRun tests:
yarn test