import {propertiesFileHasKey} from "minecraft-server-properties-parser"
propertiesFileHasKey(propertiesFile, key)
writePropertiesFile
Name
Return
Description
writePropertiesFile
Promise
Write a properties file object as a .properties file
args
Parameter
Type
Description
Required
properties
PropertiesFile
properties file object to check
True
path
string
path where the file will be written
True
example
import {writePropertiesFile} from "minecraft-server-properties-parser"
// it can be the same path from the actual edited file and will replace the old with the new changes
await writePropertiesFile(properties, path)