just-pascal-case

convert a string to pascal case

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
just-pascal-case
4,719263.1.14 months ago5 years agoMinified + gzip package size for just-pascal-case in KB

Readme

just-pascal-case

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.
🍦 Try it
npm install just-pascal-case
yarn add just-pascal-case

Convert a string to pascal case
import pascalCase from 'just-pascal-case';

pascalCase('the quick brown fox'); // 'TheQuickBrownFox'
pascalCase('the_quick_brown_fox'); // 'TheQuickBrownFox'
pascalCase('the-quick-brown-fox'); // 'TheQuickBrownFox'
pascalCase('theQuickBrownFox'); // 'TheQuickBrownFox'
pascalCase('thequickbrownfox'); // 'Thequickbrownfox'
pascalCase('the - quick * brown# fox'); // 'TheQuickBrownFox'
pascalCase('theQUICKBrownFox'); // 'TheQUICKBrownFox'