UNPKG

nestjs-starter

Version:

Get started for beginners with Nestjs

7 lines (4 loc) 198 B
const VN2Normalize = (str: string): string => str.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); // OR: -> str.normalize('NFD').replace(/\p{Diacritic}/gu, ''); export { VN2Normalize };