1.0.0 • Published 11 months ago

@sheikah-converter/test v1.0.0

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
11 months ago

@sheikah-converter/test

Test utilities and data to use in other packages from Sheikah Converter

Instalation

npm install @sheikah-converter/test

NOTE This package is meant to be used by other packages from Sheikah Converter, but it's generic enough to be used anywhere that could need (incomplete) BotW save files

API

getTempSaveDir(type) -> Promise<string>

This function will copy a save directory to a temporary directory to make it available to other packages

ParameterDescriptionRequiredDefault
typeString used to select between Wii U and Switch save filestrue

Other utilitary functions

copyDir(src, dest) -> Promise<void>

Recursively copy directory

ParameterDescriptionRequiredDefault
srcPath of directory to copytrue
destDestionation path to copy the directorytrue
createEmptyFile(path) -> Promise<void>

Creates an empty file

ParameterDescriptionRequiredDefault
pathPath where the file will be createdtrue
1.0.0

11 months ago

1.0.0-alpha.0

11 months ago