Type definitions and tests for sentence-case

This commit is contained in:
Sam Saint-Pettersen
2015-08-04 17:04:44 +01:00
parent 05a1465f2c
commit 3fbe532959
+13
View File
@@ -0,0 +1,13 @@
/// <reference path="sentence-case.d.ts" />
import sentenceCase = require('sentence-case');
console.log(sentenceCase(null)); // => ""
console.log(sentenceCase('string')); // => "stringe"
console.log(sentenceCase('dot.case')); // => "dot case"
console.log(sentenceCase('camelCase')); // => "camel case"
console.log(sentenceCase('Beyoncé Knowles')); // => "beyoncé knowles"
console.log(sentenceCase('A STRING', 'tr')); // => "a strıng"
console.log(sentenceCase('HELLO WORLD!', null, '_')); // => "hello_world"