use strict if process env NODE_ENV production require dotenv config co

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
'use strict';
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config();
};
const redis = require('./redis');
exports.getCurrencies = async function (currency) {};
exports.getSymbol = async function (currency) {};
exports.getCurrencyName = async function (currency) {};
exports.getFullInfo = async function () {};
function parseUpper(curr) {
return curr.toUpperCase().trim();
};
function parseLower(curr) {
return curr.toLowerCase().trim().replace(/[^a-z]/g, '-');
};