1.0.0 • Published 3 years ago

time-input-formatter v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Build Status Coverage Status dependencies Status npm version

time-input-formatter

This library contains es5 and es6 implementations in the deliverable and is fully tree-shakable for es6.

export type Format = '12hm' | '12hms' | '24hm' | '24hms';
export type ParsedTime = { valid: boolean, value: string };
import { deriveTimeFormat, Format, ParsedTime } from 'time-input-formatter';

MIT