Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@save-ward/save-parser-abstract

save-ward5GPL-3.0-or-later1.0.2TypeScript support: included

Abstract save parser, provides the public API for public SaveWard parsers

parser, saveward

readme

@save-ward/save-parser-abstract

The abstract save parser, provides the general API that concrete parsers implement.

Public Interface

constructor() accepts a Buffer - contents of the save file to parse. Currently the abstract save parser has only one public method: parse() that is specified to return the save file metadata.

Concrete Implementations

For an example of a concrete implementation of save parser, see the save-parser-skyrim subproject.