Merge pull request #5208 from stpettersens/master

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