Skip to content

tlvince/startcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

startcase

Build Status npm version License

Convert a string to start case

Like lodash.startCase, but:

  • Preserves diacritical marks (does not deburr)
  • Does not treat / as a word delimiter
  • Preserves Roman numerals

Installation

npm install --save startcase

Usage

var startCase = require('startcase')
startCase('hello henry IV/world')
// => 'Hello Henry IV/World'

Author

© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.