mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
8 lines
185 B
TypeScript
8 lines
185 B
TypeScript
import dashify = require('dashify');
|
|
|
|
const output: string = dashify('Foo----Bar');
|
|
// => 'foo----bar'
|
|
|
|
const output2: string = dashify('Foo----Bar', {condense: true});
|
|
// => 'foo-bar'
|