@rvoh/dream
    Preparing search index...

    Class CliFileWriter

    Index

    Constructors

    Methods

    • Parameters

      • filepath: string
      • contents: string
      • Optionalopts:
            | BufferEncoding
            | ObjectEncodingOptions & {
                flag?: OpenMode | undefined;
                flush?: boolean;
                mode?: Mode | undefined;
            } & Abortable
            | null
        • BufferEncoding
        • ObjectEncodingOptions & {
              flag?: OpenMode | undefined;
              flush?: boolean;
              mode?: Mode | undefined;
          } & Abortable
          • Optionalflag?: OpenMode | undefined
          • Optionalflush?: boolean

            If all data is successfully written to the file, and flush is true, filehandle.sync() is used to flush the data.

            false
            
          • Optionalmode?: Mode | undefined
        • null

      Returns Promise<void>

    • Parameters

      • filepath: string
      • contents: string
      • Optionalopts:
            | BufferEncoding
            | ObjectEncodingOptions & {
                flag?: OpenMode | undefined;
                flush?: boolean;
                mode?: Mode | undefined;
            } & Abortable
            | null
        • BufferEncoding
        • ObjectEncodingOptions & {
              flag?: OpenMode | undefined;
              flush?: boolean;
              mode?: Mode | undefined;
          } & Abortable
          • Optionalflag?: OpenMode | undefined
          • Optionalflush?: boolean

            If all data is successfully written to the file, and flush is true, filehandle.sync() is used to flush the data.

            false
            
          • Optionalmode?: Mode | undefined
        • null

      Returns Promise<void>