Skip to main content

string helpers

camelize​

import { camelize } from '@rvoh/dream/utils'

camelize('hello_world')
// helloWorld

capitalize​

import { capitalize } from '@rvoh/dream/utils'

capitalize('hello')
// Hello

hyphenize​

import { hyphenize } from '@rvoh/dream/utils'

hyphenize('helloWorld')
// hello-world

pascalize​

import { pascalize } from '@rvoh/dream/utils'

pascalize('hello_world')
// HelloWorld

snakeify​

import { snakeify } from '@rvoh/dream/utils'

snakeify('helloWorld')
// hello_world

uncapitalize​

import { uncapitalize } from '@rvoh/dream/utils'

uncapitalize('Hello')
// hello