mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
10 lines
215 B
TypeScript
10 lines
215 B
TypeScript
import { encode } from 'morsee';
|
|
|
|
export const compute = (
|
|
input: string,
|
|
dotSymbol: string,
|
|
dashSymbol: string
|
|
): string => {
|
|
return encode(input).replaceAll('.', dotSymbol).replaceAll('-', dashSymbol);
|
|
};
|