UNPKG

@framework100500/testing

Version:

Framework100500 is a simple web API pure Node.js framework @testing

23 lines (20 loc) 307 B
/** * Parses environment variable string * @param {string} envValue * @returns {*} */ function parseEnv(envValue) { if (!envValue) { return envValue; } let result; try { result = JSON.parse(envValue); } catch (e) { // ... } return result; } module.exports = { parseEnv, };