Nuns Practicing Misanthropy
    Have ideas to improve npm?Join in the discussion! »

    titleize
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    titleize

    Capitalize every word in a string: unicorn cakeUnicorn Cake

    Install

    $ npm install titleize
    

    Usage

    import titleize from 'titleize';
    
    titleize('foo bar');
    //=> 'Foo Bar'
    
    titleize('foo-bar');
    //=> 'Foo-Bar'

    Related

    • camelcase - Convert a dash/dot/underscore/space separated string to camelcase

    Install

    npm i titleize

    DownloadsWeekly Downloads

    279,280

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    2.78 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar