1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-01 20:13:38 +00:00

updated all commands and removed some weird files

This commit is contained in:
MatteZ02
2019-08-14 15:26:33 +03:00
parent 29b40867a3
commit 9d7e55b5ee
1058 changed files with 170671 additions and 70 deletions

View File

@ -0,0 +1,24 @@
const Stream = require('stream');
class ResponseStream extends Stream.Readable {
constructor() {
super();
this.statusCode = 200;
this.status = 'OK';
}
error(code, message) {
this.statusCode = code;
this.status = message;
return this;
}
on(event, handler) {
if (['end', 'open'].includes(event))
handler();
}
_read() {} // eslint-disable-line no-empty-function
}
module.exports = ResponseStream;