UNPKG

js-convert-case

Version:

JavaScript Convert String and Keys of Object between cases (camelCase, snake_case, PascalCase, dot.case, path/case, text case, Sentence case, Header Case, UPPERCASE, lowercase, kebab-case). Use for both Node.JS and Browser

8 lines (7 loc) 338 B
import { Options } from '../utils'; /** * Convert string keys in an object to PascalCase format. * @param obj: object to convert keys. If `obj` isn't a json object, `null` is returned. * @param opt: (optional) Options parameter, default is non-recursive. */ export default function pascalKeys(obj: any, opt?: Options): object | null;