Skip to main content

string helpers

camelize

import { camelize } from '@rvoh/dream'

camelize('hello_world')
// helloWorld

capitalize

import { capitalize } from '@rvoh/dream'

capitalize('hello')
// Hello

hyphenize

import { hyphenize } from '@rvoh/dream'

pascalize('helloWorld')
// hello-world

pascalize

import { pascalize } from '@rvoh/dream'

pascalize('hello_world')
// HelloWorld

snakeify

import { snakeify } from '@rvoh/dream'

snakeify('helloWorld')
// hello_world

uncapitalize

import { uncapitalize } from '@rvoh/dream'

uncapitalize('Hello')
// hello