1.0.0 • Published 2 years ago
@tipy/convert v1.0.0
Convert
Convert has a set of convertion utils functions, check the api to see what it is available.
Install
yarn add @tipy/convert
How to use
import { convertSnakeToCamel } from '@tipy/convert';
convertSnakeToCamel({ first_name: 'Gus' });
API
Function name | Parameters | Description |
---|---|---|
convertSnakeToCamel | item: object | it converts the object's attributes from snake_case to camelCase, you can also pass an array . string , number and other primitives will be returned as they are. |
1.0.0
2 years ago