mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-12 22:36:10 +08: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'
|