Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.backend.stdout.on('data', (data) => {
let message = data.toString()
if (requiresNL) {
message = "\n" + message
requiresNL = false
}
if (message.endsWith("\n")) {
requiresNL = true
message = trim.end(message)
}
process.stdout.write(message.replace(/\n/g, "\n[reposilite-backend] "))
})
get(prop: string): string {
let result = spawnSync('getprop', [prop], {encoding: 'utf8'});
if (result.stdout) {
return trimNewLinesAtEnd(result.stdout.toString());
}
return '';
},
set(prop: string, value: string): void {