Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (15 loc) · 976 Bytes

readme.md

File metadata and controls

23 lines (15 loc) · 976 Bytes

duration-of-timeframe Build status npm version codecov

Resolve timeframe into corresponding momentjs duration

Install

npm install @strong-roots-capital/duration-of-timeframe

Use

import durationOfTimeframe from '@strong-roots-capital/duration-of-timeframe'

console.log(durationOfTimeframe('4H'))
//=>'hour'

Related