UNPKG

bridgets

Version:

<p align="center"> <a href="https://bridgets.co"> <img src="http://bridgets.co/assets/logo-short.svg" height="48" /> <h1 align="center">BridgeTS</h1> </a> </p>

17 lines 879 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getParamsObjectString = exports.pathArrayToPath = exports.lastElem = exports.upperCaseFirstLetterOnly = void 0; const upperCaseFirstLetterOnly = (name) => name.charAt(0).toUpperCase() + name.slice(1).toLowerCase(); exports.upperCaseFirstLetterOnly = upperCaseFirstLetterOnly; const lastElem = (Arr) => Arr[Arr.length - 1]; exports.lastElem = lastElem; const pathArrayToPath = (pathArray, origin) => pathArray.length === 0 ? `${origin}` : `${origin}/` + pathArray.reduce((prev, curr) => prev + '/' + curr); exports.pathArrayToPath = pathArrayToPath; const getParamsObjectString = (p) => { if (p.length === 0) return '{}'; else return `{ ${p.reduce((a, b) => a + '; ' + b)} }`; }; exports.getParamsObjectString = getParamsObjectString; //# sourceMappingURL=compiler.js.map