đź“–Normalize human readable timeframe strings to the respective exchange format.
npm i -S joemccann/timeframe-exchange-mappings
In your node.js app:
const {
binance,
coinbase
} = require('timeframe-exchange-mappings')
console.log(binance['1d']) // '1d'
console.log(coinbase['1d']) // 86400
npm i -D
npm test
MIT