UNPKG

s3-uploading

Version:

The small lib which allows to upload directory to AWS S3.

19 lines (15 loc) 400 B
import chalk from 'chalk' const log = console.log const error = chalk.bold.red const success = chalk.green const cyan = chalk.cyan export function handleUploadSuccessfully(options) { const { data, fileLength, count } = options log(success(data.Location)) if (count === fileLength) { log(cyan('Upload successfully!!!')) } } export function handleUploadError(err) { throw error(err) }