Skip to content

tipy/convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert

GitHub version npm version

Convert has a set of conversion 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' });
// results: { firstName: '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. but string, number and other primitives will be returned as they are.

About

Convert has a set of conversion utils functions, check the api to see what it is available.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors