UNPKG

s3-cli-js

Version:

A TypeScript-based npm package that replaces AWS CLI for S3 operations using presigned URLs

48 lines 1.38 kB
/** * Progress utilities for file operations */ import { ProgressCallback } from '../types'; /** * Create a progress bar for file operations */ export declare function createProgressBar(total: number, description: string): ProgressBar; /** * Create a progress callback that updates a progress bar */ export declare function createProgressCallback(progressBar: ProgressBar): ProgressCallback; /** * Format bytes to human readable format */ export declare function formatBytes(bytes: number): string; /** * Format date to human readable format */ export declare function formatDate(date: Date): string; /** * Parse S3 URI (s3://bucket/key) */ export declare function parseS3Uri(uri: string): { bucket: string; key: string; }; /** * Check if path is S3 URI */ export declare function isS3Uri(path: string): boolean; /** * Join S3 paths */ export declare function joinS3Path(...parts: string[]): string; /** * Get file extension */ export declare function getFileExtension(filename: string): string; /** * Check if pattern matches string (simple glob pattern matching) */ export declare function matchesPattern(str: string, pattern: string): boolean; /** * Filter files based on include/exclude patterns */ export declare function shouldIncludeFile(filename: string, include?: string[], exclude?: string[]): boolean; //# sourceMappingURL=progress.d.ts.map