UNPKG

mr-case

Version:

55 functions to seamlessly transform strings, arrays, and object keys between different cases (camelCase, snake_case, kebab-case, PascalCase, Title Case, and more), clean and format text, extract URL components, and perform common text operations like mas

7 lines (5 loc) 225 B
function decapitalize(str) { if (typeof str !== 'string' || !str.length) throw new Error('Input must be a non-empty string'); return str.charAt(0).toLowerCase() + str.slice(1); } module.exports = decapitalize;