First commit

This commit is contained in:
Jacob Windle 2019-01-24 19:54:48 -05:00
commit 99dcd841ed
2 changed files with 34 additions and 0 deletions

19
index.js Normal file
View File

@ -0,0 +1,19 @@
var net = require('net');
async function logAndSend(bytes) {
}
var server = net.createServer((socket) => {
socket.on('end', (c) => {
console.log("Client disconnected");
});
})
server.on('connection', () => {
console.log("Client connected!");
});
server.listen(8124, () => {
console.log("Server bound.");
})

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "node-http-proxy",
"version": "1.0.0",
"description": "A proxy built using NodeJS",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"run": "node index.js"
},
"author": "jaketothepast",
"license": "MIT",
"dependencies": {
"express": "^4.16.4"
}
}