@sheikah-converter/test
v1.0.0
Published
Cross package test data/utils for sheikah-converter
Downloads
2
Readme
@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
| Parameter | Description | Required | Default |
| --------- | --------------------------------------------------------- | -------- | ------- |
| type
| String used to select between Wii U and Switch save files | true
| |
Other utilitary functions
copyDir(src, dest) -> Promise<void>
Recursively copy directory
| Parameter | Description | Required | Default |
| --------- | --------------------------------------- | -------- | ------- |
| src
| Path of directory to copy | true
| |
| dest
| Destionation path to copy the directory | true
| |
createEmptyFile(path) -> Promise<void>
Creates an empty file
| Parameter | Description | Required | Default |
| --------- | ----------------------------------- | -------- | ------- |
| path
| Path where the file will be created | true
| |