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>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i temp-file

Weekly Downloads

251,613

Version

3.4.0

License

MIT

Unpacked Size

18.4 kB

Total Files

5

Last publish

Collaborators

  • develar