You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			| 
				
					
						 | 
			4 years ago | |
|---|---|---|
| .. | ||
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| package.json | 4 years ago | |
| sentence-case.d.ts | 4 years ago | |
| sentence-case.js | 4 years ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	Sentence Case
Sentence case a string. Explicitly adds a single underscore between groups of numbers to maintain readability and reversibility (E.g. 1.20.5 becomes 1_20_5, not 1205), by default.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.
Installation
Node
npm install sentence-case --save
Usage
var sentenceCase = require('sentence-case')
sentenceCase('string')         //=> "String"
sentenceCase('dot.case')       //=> "Dot case"
sentenceCase('PascalCase')     //=> "Pascal case"
sentenceCase('version 1.2.10') //=> "Version 1 2 10"
sentenceCase('STRING 1.2', 'tr') //=> "Strıng 1 2"
Typings
Includes a TypeScript definition.
License
MIT