Skip to content

nsuite v2.2.1


nsuite / ZipFileOptions

Interface: ZipFileOptions ​

Defined in: UtilsFile.ts:27

Generates a safe file name by replacing special characters with underscores. Consecutive underscores are also reduced to a single underscore.

Param ​

fileName

The original file name to be sanitized.

Example ​

ts
import { getSafeFileName } from "nsuite";
const safeFileName = getSafeFileName("测试有空格 和特殊符号 &.pdf");

Properties ​

pathInputFile ​

pathInputFile: string

Defined in: UtilsFile.ts:28


pathOutputFile ​

pathOutputFile: string

Defined in: UtilsFile.ts:29

Released under the Apache-2.0 License.