Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Writer

Writer class is a one of utils class in this command. This class respond to writing content to file.

author

Kamontat Chantrachirathumrong

version

1.0.0

since

November 16, 2018

Hierarchy

  • Writer

Index

Methods

Methods

Static ByChapter

  • This will almost the same as Writer.ByPath except you need to pass chapter instead of file path

    author

    Kamontat Chantrachirathumrong

    version

    1.0.1

    since

    November 11, 2018

    Parameters

    • html: string

      content string (usually will be HTML format)

    • chapter: NovelChapter

      Chapter to be saved

    • Optional force: undefined | false | true

      force save the result even file is exist

    Returns Bluebird<NovelChapter>

Static ByPath

  • ByPath(html: string, path: string, force?: undefined | false | true): Bluebird<string>
  • This will write the content to file use promise technology (Bluebird)

    author

    Kamontat Chantrachirathumrong

    since

    November 11, 2018

    version

    1.0.1

    version

    1.1.0 - Make the method return Bluebird instead of normal Promise

    Parameters

    • html: string

      content string (usually will be HTML format)

    • path: string

      the file path (must be full path)

    • Optional force: undefined | false | true

      force to save the file even it exist

    Returns Bluebird<string>

Generated using TypeDoc