Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/s3si/src/exporters/file.ts>FileExporter

Export your battles from SplatNet to https://stat.ink
Latest
class FileExporter
implements GameExporter
import { FileExporter } from "https://deno.land/x/s3si@gui-v0.4.20/src/exporters/file.ts";

Exporter to file.

This is useful for debugging. It will write each battle detail to a file. Timestamp is used as filename. Example: 20210101T000000Z.json

Constructors

new
FileExporter(exportPath: string)

Properties

name: string

Methods

exportedGames(unnamed 0: { uid: string; type: Game["type"]; filter?: (game: Game) => boolean; }): Promise<{ id: string; getContent: () => Promise<Game>; }[]>

Get all exported files

exportGame(info: Game): Promise<ExportResult>
exportSummary(summary: Summary): Promise<ExportResult>
getFilenameById(id: string)
notExported(unnamed 0: { list: string[]; }): Promise<string[]>