Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Storage

Abstracts storage to file system or html localStorage.

Hierarchy

  • Storage

Index

Constructors

  • new Storage(location: string): Storage

Properties

location: Location

Accessors

  • get exists(): boolean

Methods

  • append(contents: string): void
  • For file system storage, all newlines are replaced with OS-appropriate

    Parameters

    • contents: string

    Returns void

  • clear(): void
  • insert(contents: string, start: number): void
  • mkdir(): void
  • padLines(start: number, lines: number): void
  • read(): undefined | string
  • remove(): void
  • toString(): string
  • write(contents: string): void
  • For file system storage, all newlines are replaced with OS-appropriate

    Parameters

    • contents: string

    Returns void

Generated using TypeDoc