Options
All
  • Public
  • Public/Protected
  • All
Menu

Used for parsing the data/sms.zip file.

internal

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

getMessages

  • getMessages(): Promise<Message[]>

Private parseData

  • parseData(data: string): Message[]
  • Parses the SMS data file.

    The file is in the following format:

    ham  Hello World
    spam  Free entry in 2 a wkly comp
    

    The delimiter between the first and subsequent tokens is a tab character.

    Parameters

    • data: string

      The raw file from the ZIP archive.

    Returns Message[]

    An array of messages parsed from the file.

Generated using TypeDoc