• Version 0.9.4
  • Published
  • 5.21 kB
  • 1 dependency
  • MIT license


npm i @types/temp
yarn add @types/temp
pnpm add @types/temp


TypeScript definitions for temp



variable dir

let dir: string;


    function cleanup

    cleanup: {
    (callback: (err: any, result: Stats) => void): void;
    (): Promise<Stats>;

      function cleanupSync

      cleanupSync: () => boolean | Stats;

        function createWriteStream

        createWriteStream: (affixes?: string | AffixOptions) => fs.WriteStream;

          function mkdir

          mkdir: {
          affixes: string | AffixOptions | undefined,
          callback: (err: any, dirPath: string) => void
          ): void;
          (affixes?: string | AffixOptions): Promise<string>;

            function mkdirSync

            mkdirSync: (affixes?: string | AffixOptions) => string;

              function open

              open: {
              affixes: string | AffixOptions | undefined,
              callback: (err: any, result: OpenFile) => void
              ): void;
              (affixes?: string | AffixOptions): Promise<OpenFile>;

                function openSync

                openSync: (affixes?: string | AffixOptions) => OpenFile;

                  function path

                  path: (affixes?: string | AffixOptions, defaultPrefix?: string) => string;

                    function track

                    track: (value?: boolean) => typeof temp;


                      interface AffixOptions

                      interface AffixOptions {}

                        property dir

                        dir?: string | undefined;

                          property prefix

                          prefix?: string | undefined;

                            property suffix

                            suffix?: string | undefined;

                              interface OpenFile

                              interface OpenFile {}

                                property fd

                                fd: number;

                                  property path

                                  path: string;

                                    interface Stats

                                    interface Stats {}

                                      property dirs

                                      dirs: number;

                                        property files

                                        files: number;

                                          Package Files (1)

                                          Dependencies (1)

                                          Dev Dependencies (0)

                                          No dev dependencies.

                                          Peer Dependencies (0)

                                          No peer dependencies.


                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/temp.

                                          • Markdown
                                          • HTML
                                            <a href="https://www.jsdocs.io/package/@types/temp"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>