Function normalizeOptions
- normalizeOptions(
options:
| undefined
| WriteFileOptions
| (EncodingOption & { flag?: OpenMode | undefined; }),
encoding?: null | BufferEncoding,
flag: string,
mode?: number,
): { encoding?: BufferEncoding | null; flag: string; mode: number } Internal
Parameters
- options:
| undefined
| WriteFileOptions
| (EncodingOption & { flag?: OpenMode | undefined; }) - encoding: null | BufferEncoding = 'utf8'
- flag: string
- mode: number = 0
Returns { encoding?: BufferEncoding | null; flag: string; mode: number }
Normalizes options