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

strong-roots-capital/duration-of-timeframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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