diff --git a/path-case/path-case-tests.ts b/path-case/path-case-tests.ts new file mode 100644 index 000000000..8c17cbd44 --- /dev/null +++ b/path-case/path-case-tests.ts @@ -0,0 +1,9 @@ +/// + +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" diff --git a/path-case/path-case.d.ts b/path-case/path-case.d.ts new file mode 100644 index 000000000..bb577cac8 --- /dev/null +++ b/path-case/path-case.d.ts @@ -0,0 +1,9 @@ +// Type definitions for path-case +// Project: https://github.com/blakeembrey/path-case +// Definitions by: Sam Saint-Pettersen +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "path-case" { + function pathCase(string: string, locale?: string): string; + export = pathCase; +}