UNPKG

bananas-commerce

Version:

A client for bananas-commerce with support for TypeScript

24 lines (23 loc) 843 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.camelCase = exports.camelCaseTransformMerge = exports.camelCaseTransform = void 0; const mod_js_1 = require("../pascal_case/mod.js"); function camelCaseTransform(input, index) { if (index === 0) return input.toLowerCase(); return (0, mod_js_1.pascalCaseTransform)(input, index); } exports.camelCaseTransform = camelCaseTransform; function camelCaseTransformMerge(input, index) { if (index === 0) return input.toLowerCase(); return (0, mod_js_1.pascalCaseTransformMerge)(input); } exports.camelCaseTransformMerge = camelCaseTransformMerge; function camelCase(input, options = {}) { return (0, mod_js_1.pascalCase)(input, { transform: camelCaseTransform, ...options, }); } exports.camelCase = camelCase;