Read and write Arma3Sync .a3s
config data using JavaScript.
const a3s = new A3sDirectory('/my/repo/path/.a3s/')
a3s.getEvents().then(events => { /*pure awesome*/});
Currently uses config and expects this config structure to exist:
{
"arma3sync-lib": {
"publicURL": "", // public repository URL, ex. `http://mods.my-clan.com/`
"repoName": "", // repository name
"repoPath": "" // file path to the repository, ex. `/var/lib/a3s/mods`
}
}