Variable defaultConst

    default: {
        archive: ((target: string, directory: {
            C: string;
            path: string;
        }) => Promise<void>);
        convert: ((location: string, file: {
            name: string;
            target: string;
        }, callback?: ((data: {
            data?: string;
            error?: string;
        }) => void), param?: {
            isResult: boolean;
        }) => Promise<{
            brep?: string;
            glb: string;
            name: string;
        }[]>);
        copyDirectory: ((origin: string, destination: string) => Promise<void>);
        copyFile: ((origin: {
            file: string;
            path: string;
        }, destination: {
            file: string;
            path: string;
        }) => Promise<void>);
        createPath: ((location: string) => Promise<void>);
        decrypt: ((hash: {
            content: string;
            iv: string;
        }) => Promise<string>);
        encrypt: ((text: string) => Promise<{
            content: string;
            iv: string;
        }>);
        listDirectories: ((location: string) => Promise<string[]>);
        listFiles: ((location: string) => Promise<Dirent[]>);
        readFile: ((file: string, options?: any) => Promise<Buffer>);
        readJSONFile: ((file: string) => Promise<any>);
        readStream: ((file: string) => ReadStream);
        removeDirectory: ((dir: string) => Promise<void>);
        removeFile: ((file: string) => Promise<void>);
        splitStep: ((location: string, fileIn: string) => Promise<string[]>);
        toPosix: ((str: string) => string);
        unarchive: ((source: string, directory: {
            C: string;
            path: string;
        }) => Promise<void>);
        writeFile: ((location: string, name: string, content: string | Buffer) => Promise<void>);
        writeStream: ((file: string) => WriteStream);
    } = ...

    Type declaration

    • archive: ((target: string, directory: {
          C: string;
          path: string;
      }) => Promise<void>)
        • (target, directory): Promise<void>
        • Tar

          Parameters

          • target: string

            Target

          • directory: {
                C: string;
                path: string;
            }

            Directory

            • C: string
            • path: string

          Returns Promise<void>

    • convert: ((location: string, file: {
          name: string;
          target: string;
      }, callback?: ((data: {
          data?: string;
          error?: string;
      }) => void), param?: {
          isResult: boolean;
      }) => Promise<{
          brep?: string;
          glb: string;
          name: string;
      }[]>)
        • (location, file, callback?, param?): Promise<{
              brep?: string;
              glb: string;
              name: string;
          }[]>
        • Convert file

          Parameters

          • location: string

            Location

          • file: {
                name: string;
                target: string;
            }

            File

            • name: string
            • target: string
          • Optionalcallback: ((data: {
                data?: string;
                error?: string;
            }) => void)

            Callback

              • (data): void
              • Parameters

                • data: {
                      data?: string;
                      error?: string;
                  }
                  • Optionaldata?: string
                  • Optionalerror?: string

                Returns void

          • Optionalparam: {
                isResult: boolean;
            }

            Parameters

            • isResult: boolean

          Returns Promise<{
              brep?: string;
              glb: string;
              name: string;
          }[]>

          Data

    • copyDirectory: ((origin: string, destination: string) => Promise<void>)
        • (origin, destination): Promise<void>
        • Copy directory

          Parameters

          • origin: string

            Origin path

          • destination: string

            Destination

          Returns Promise<void>

    • copyFile: ((origin: {
          file: string;
          path: string;
      }, destination: {
          file: string;
          path: string;
      }) => Promise<void>)
        • (origin, destination): Promise<void>
        • Copy file

          Parameters

          • origin: {
                file: string;
                path: string;
            }

            Origin path

            • file: string
            • path: string
          • destination: {
                file: string;
                path: string;
            }

            Destination

            • file: string
            • path: string

          Returns Promise<void>

    • createPath: ((location: string) => Promise<void>)
        • (location): Promise<void>
        • Create path (recursive)

          Parameters

          • location: string

            Location path

          Returns Promise<void>

    • decrypt: ((hash: {
          content: string;
          iv: string;
      }) => Promise<string>)
        • (hash): Promise<string>
        • Decrypt hash

          Parameters

          • hash: {
                content: string;
                iv: string;
            }

            Hash

            • content: string
            • iv: string

          Returns Promise<string>

          Decrypted text

    • encrypt: ((text: string) => Promise<{
          content: string;
          iv: string;
      }>)
        • (text): Promise<{
              content: string;
              iv: string;
          }>
        • Encrypt text

          Parameters

          • text: string

            Text

          Returns Promise<{
              content: string;
              iv: string;
          }>

          Hash

    • listDirectories: ((location: string) => Promise<string[]>)
        • (location): Promise<string[]>
        • List directories

          Parameters

          • location: string

            Location

          Returns Promise<string[]>

          Directory list

    • listFiles: ((location: string) => Promise<Dirent[]>)
        • (location): Promise<Dirent[]>
        • List files

          Parameters

          • location: string

            Location

          Returns Promise<Dirent[]>

          Files list (with types)

    • readFile: ((file: string, options?: any) => Promise<Buffer>)
        • (file, options?): Promise<Buffer>
        • Read file

          Parameters

          • file: string

            File name

          • Optionaloptions: any

            Options

          Returns Promise<Buffer>

          File content

    • readJSONFile: ((file: string) => Promise<any>)
        • (file): Promise<any>
        • Parameters

          • file: string

          Returns Promise<any>

    • readStream: ((file: string) => ReadStream)
        • (file): ReadStream
        • Create read stream

          Parameters

          • file: string

            File

          Returns ReadStream

          Read stream

    • removeDirectory: ((dir: string) => Promise<void>)
        • (dir): Promise<void>
        • Remove directory

          Parameters

          • dir: string

            Directory

          Returns Promise<void>

    • removeFile: ((file: string) => Promise<void>)
        • (file): Promise<void>
        • Remove file

          Parameters

          • file: string

            File name

          Returns Promise<void>

    • splitStep: ((location: string, fileIn: string) => Promise<string[]>)
        • (location, fileIn): Promise<string[]>
        • Parameters

          • location: string
          • fileIn: string

          Returns Promise<string[]>

    • toPosix: ((str: string) => string)
        • (str): string
        • Path to posix

          Parameters

          • str: string

            Path

          Returns string

          POSIX path

    • unarchive: ((source: string, directory: {
          C: string;
          path: string;
      }) => Promise<void>)
        • (source, directory): Promise<void>
        • Parameters

          • source: string
          • directory: {
                C: string;
                path: string;
            }
            • C: string
            • path: string

          Returns Promise<void>

    • writeFile: ((location: string, name: string, content: string | Buffer) => Promise<void>)
        • (location, name, content): Promise<void>
        • Write file

          Parameters

          • location: string

            Location

          • name: string

            File name

          • content: string | Buffer

            Content

          Returns Promise<void>

    • writeStream: ((file: string) => WriteStream)
        • (file): WriteStream
        • Create write stream

          Parameters

          • file: string

            File

          Returns WriteStream

          Write stream

    Generated using TypeDoc and TypeDoc Airthium Plugin