field-normalizer
Version:
A tiny lib for object field's normalization
20 lines (17 loc) • 427 B
JavaScript
// Useful constants
const FUNCTIONS = {
toLowerCase: 'toLowerCase',
toUpperCase: 'toUpperCase',
camelCase: 'camelCase',
pascalCase: 'pascalCase',
constantCase: 'constantCase',
snakeCase: 'snakeCase',
headerCase: 'headerCase',
paramCase: 'paramCase',
};
const NATIVE_FUNCTIONS = [
FUNCTIONS.toLowerCase,
FUNCTIONS.toUpperCase,
];
exports.FUNCTIONS = FUNCTIONS;
exports.NATIVE_FUNCTIONS = NATIVE_FUNCTIONS;