Nature Preceded Machines

    just-camel-case
    TypeScript icon, indicating that this package has built-in type declarations

    6.0.1 • Public • Published

    just-camel-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-camel-case
    yarn add just-camel-case

    Convert a string to camel case

      import camelCase from 'just-camel-case';
    
      camelCase('the quick brown fox'); // 'theQuickBrownFox'
      camelCase('the_quick_brown_fox'); // 'theQuickBrownFox'
      camelCase('the-quick-brown-fox'); // 'theQuickBrownFox'
      camelCase('theQuickBrownFox'); // 'theQuickBrownFox'
      camelCase('thequickbrownfox'); // 'thequickbrownfox'
      camelCase('the - quick * brown# fox'); // 'theQuickBrownFox'
      camelCase('behold theQuickBrownFox'); // 'beholdTheQuickBrownFox'
      camelCase('Behold theQuickBrownFox'); // 'beholdTheQuickBrownFox'
      // all caps words are camel-cased
      camelCase('The quick brown FOX'), 'theQuickBrownFox');
      // all caps substrings >= 4 chars are camel-cased
      camelCase('theQUickBrownFox'); // 'theQUickBrownFox'
      camelCase('theQUIckBrownFox'); // 'theQUIckBrownFox'
      camelCase('theQUICKBrownFox'); // 'theQuickBrownFox'

    Install

    npm i just-camel-case

    DownloadsWeekly Downloads

    17,896

    Version

    6.0.1

    License

    MIT

    Unpacked Size

    6.28 kB

    Total Files

    8

    Last publish

    Collaborators

    • angus-c