normalizeFile JavaScript
Returns the file name within the path.
Parameters
filePath::string
: File or directory pathnormalizationForm::'NFC'|'NFD'|'NFKC'|'NFKD'|undefined
: Normalization method (If value isundefined
,NFC
is used.)
Returns
string
Examples
javascript
normalizeFile('안녕하세요Hello.txt', 'NFC'); // '안녕하세요Hello.txt'
normalizeFile('안녕하세요Hello.txt', 'NFD'); // '안녕하세요Hello.txt'