Convert a BitMEX bin-size to a Trading View timeframe
npm install @strong-roots-capital/bin-size-to-timeframe
import binSizeToTimeframe from '@strong-roots-capital/bin-size-to-timeframe'
binSizeToTimeframe('1m')
//=> '1'
binSizeToTimeframe('5m')
//=> '5'
binSizeToTimeframe('1h')
//=> '1H'
binSizeToTimeframe('1d')
//=> '1D'