UNPKG

enterprise-basics

Version:

A utility library for enterprise applications. It streamlines common business tasks by providing functions to process delimited and Excel files, generate professional PDFs, and handle email communications with attachments.

14 lines (13 loc) 616 B
/** * Saves file bytes to the specified directory path * @param {Uint8Array | string} data - File data to save * @param {string} fileName - Name of the file with extension * @param {string} directoryPath - Target directory path * @returns {Promise<string>} Path where the file was saved * @throws {Error} If validation fails or file operations fail * * @example * const bytes = await createExcelBytes(data); * await saveFileBytesToPath(bytes, 'report.xlsx', './exports'); */ export declare function saveFileBytesToPath(data: Uint8Array | string, fileName: string, directoryPath: string): Promise<string>;