A set of tools and function to convert strings, numbers, paths etc.
npm
npm install str-convert --save-dev
yarn
yarn add str-convert
A single function
import { pascalCase } from 'str-convert';
const convertedString = pascalCase('This string to PascalCase');
// result; ThisStringToPascalcase
all functions
import * as convert from 'str-convert';
const convertedString = convert.pascalCase('This string to PascalCase');
// result; ThisStringToPascalcase
Convert string to lowercase
const str = lowerCase('This is a String');
// result; this is a string
Convert string to pascalCase
const str = pascalCase('This is a String');
// result; ThisIsAString