Skip to content

normalizeFile

Node.js 런타임 필요 ('qsu/node')

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

Parameters

이름타입필수기본값
filePathstring
File or directory path
normalizationFormnamed'NFC' | 'NFD' | 'NFKC' | 'NFKD'
Normalization method (If value is undefined, NFC is used.)

named 표시가 있는 파라미터는 Dart에서는 named 파라미터, Python에서는 키워드 인자로 전달됩니다.

Returns

string

Examples

javascript
normalizeFile('안녕하세요Hello.txt', 'NFC'); // '안녕하세요Hello.txt'
normalizeFile('안녕하세요Hello.txt', 'NFD'); // '안녕하세요Hello.txt'
dart
normalizeFile('안녕하세요Hello.txt', normalizationForm: 'NFC'); // '안녕하세요Hello.txt'
normalizeFile('안녕하세요Hello.txt', normalizationForm: 'NFD'); // '안녕하세요Hello.txt'
python
normalizeFile('안녕하세요Hello.txt', 'NFC') # '안녕하세요Hello.txt'
normalizeFile('안녕하세요Hello.txt', 'NFD') # '안녕하세요Hello.txt'

Released under the MIT License