UNPKG

@api3/contracts

Version:

Contracts through which API3 services are delivered

13 lines 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toUpperSnakeCase = toUpperSnakeCase; function toUpperSnakeCase(input) { return input .replaceAll(/[^\d\sA-Za-z]+/g, ' ') // replace each non-alphanumeric character with a space .replaceAll(/\s+/g, ' ') // replace consecutive spaces with a single space .trim() .split(' ') .join('_') .toUpperCase(); } //# sourceMappingURL=strings.js.map