@types/temp

  • Version 0.9.1
  • Published
  • 5.56 kB
  • 1 dependency
  • MIT license

Install

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

Overview

TypeScript definitions for temp

Index

Variables

variable dir

let dir: string;

    Functions

    function cleanup

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

      function cleanupSync

      cleanupSync: () => boolean | Stats;

        function createWriteStream

        createWriteStream: (affixes?: string | AffixOptions) => any;

          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;

                      Interfaces

                      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.

                                          Badge

                                          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
                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/temp)
                                          • 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>