time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

readme.md (393B)


      1 # titleize
      2 
      3 > Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
      4 
      5 ## Install
      6 
      7 ```
      8 $ npm install titleize
      9 ```
     10 
     11 ## Usage
     12 
     13 ```js
     14 import titleize from 'titleize';
     15 
     16 titleize('foo bar');
     17 //=> 'Foo Bar'
     18 
     19 titleize('foo-bar');
     20 //=> 'Foo-Bar'
     21 ```
     22 
     23 ## Related
     24 
     25 - [camelcase](https://github.com/sindresorhus/camelcase) - Convert a dash/dot/underscore/space separated string to camelcase