temp-file
TypeScript icon, indicating that this package has built-in type declarations

3.4.0 • Public • Published

temp-file

export function getTempName(prefix?: string | null | undefined): string;

export class TmpDir {
    getTempDir(suffix?: string): Promise<string>;
    
    createTempDir(suffix?: string): Promise<string>;
    
    getTempFile(suffix: string, isDir?: boolean, disposer?: ((file: string) => Promise<void>) | null): Promise<string>;
    
    cleanupSync(): void;
    
    cleanup(): Promise<any>;
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.4.0
    243,016
    • latest

Version History

Package Sidebar

Install

npm i temp-file

Weekly Downloads

229,646

Version

3.4.0

License

MIT

Unpacked Size

18.4 kB

Total Files

5

Last publish

Collaborators

  • develar