Constructors
constructor
- new Storage(location: string): Storage
Methods
append
- append(contents: string): void
insert
- insert(contents: string, start: number): void
Parameters
contents: string
start: number
Returns void
padLines
- padLines(start: number, lines: number): void
Parameters
start: number
lines: number
Returns void
read
- read(): undefined | string
Returns undefined | string
write
- write(contents: string): void
Abstracts storage to file system or html localStorage.