Skip to content

normalizeFile JavaScript

경로 내의 파일 이름을 반환합니다.

Parameters

  • filePath::string: File or directory path
  • normalizationForm::'NFC'|'NFD'|'NFKC'|'NFKD'|undefined: Normalization method (If value is undefined, NFC is used.)

Returns

string

Examples

javascript
normalizeFile('안녕하세요Hello.txt', 'NFC'); // '안녕하세요Hello.txt'
normalizeFile('안녕하세요Hello.txt', 'NFD'); // '안녕하세요Hello.txt'

Released under the MIT License