1.0.0 • Published 5 years ago
@strong-roots-capital/duration-of-timeframe v1.0.0
duration-of-timeframe
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
1.0.0
5 years ago