UNPKG

@cto.ai/ops

Version:

💻 CTO.ai Ops - The CLI built for Teams 🚀

20 lines (19 loc) • 563 B
"use strict"; /** * @author: JP Lew (jp@cto.ai) * @date: Monday, 29th April 2019 5:55:21 pm * @lastModifiedBy: JP Lew (jp@cto.ai) * @lastModifiedTime: Friday, 13th September 2019 1:13:02 pm * @copyright (c) 2019 CTO.ai */ Object.defineProperty(exports, "__esModule", { value: true }); exports.titleCase = (str) => { return str .split(' ') .map(w => w[0].toUpperCase() + w.substr(1).toLowerCase()) .join(' '); }; exports.pluralize = (str) => { return `${str}s`; }; exports.appendSuffix = (name, suffix) => `${name}${suffix}`;