UNPKG

localbackup

Version:

Utility to make local backups easily and without the hassle.

15 lines (11 loc) 356 B
import chalk from 'chalk' import ora from 'ora' import fse from 'fs-extra' export async function deleteTempBackup (props: { localFilePath: string }): Promise<void> { const spinner = ora('Deleting temporal backup file...').start() fse.removeSync(props.localFilePath) spinner.stop() console.log(chalk.gray('✅ Temporal backup file deleted')) }