mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
/// <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"
|