Merge pull request #5005 from stpettersens/master

Type definitions and tests for dot-case
This commit is contained in:
Masahiro Wakame
2015-07-23 01:47:45 +09:00
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
/// <reference path="dot-case.d.ts" />
import dotCase = require('dot-case');
console.log(dotCase('string')); // => "string"
console.log(dotCase('camelCase')); // => "camel.case"
console.log(dotCase('sentence case')); // => "sentence.case"
console.log(dotCase('MY STRING', 'tr')); // => "my.strıng"
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for dot-case
// Project: https://github.com/blakeembrey/dot-case
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "dot-case" {
function dotCase(string: string, locale?: string): string;
export = dotCase;
}