UNPKG

serverless-offline-edge-lambda

Version:

A plugin for the Serverless Framework that simulates the behavior of AWS CloudFront Edge Lambdas while developing offline.

11 lines 384 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.capitalize = void 0; function capitalize(value) { if (typeof value !== 'string') { throw new TypeError('Expected a string'); } return value.toLowerCase().replace(/(?:^|\s|-)\S/g, str => str.toUpperCase()); } exports.capitalize = capitalize; //# sourceMappingURL=capitalize.js.map