Transform any string using properties CSS like
$ npm install transform-string
const transformString = require('transform-string');
transformString('unicorns');
//=> 'Unicorns'
transformString.lowercase('Hello World');
//=> 'hello world'
or
import transformString, { capitalize } from 'transform-string';
transformString('unicorns');
//=> 'Unicorns'
capitalize('hello world');
//=> 'Hello World'
Type: string
The input to be transformed
Type: object
Type: string
Default: title
String transform type.
Types:
title
capitalize
lowercase
uppercase
Type: string
Capitalizes first letter of string
Type: string
Capitalizes first letter of each word in string
Type: string
Converts all to lowercase
Type: string
Converts all to uppercase
- capitalize-first-letters Capitalizes first letters of each word in string
MIT © Abraham Hernandez