initial commit
This commit is contained in:
commit
bc34a68b02
|
@ -0,0 +1,5 @@
|
||||||
|
# sensitive data
|
||||||
|
.env
|
||||||
|
|
||||||
|
# npm
|
||||||
|
node_modules
|
|
@ -0,0 +1,16 @@
|
||||||
|
"use strict";
|
||||||
|
exports.__esModule = true;
|
||||||
|
var dotenv = require("dotenv");
|
||||||
|
var http = require("http");
|
||||||
|
dotenv.config({});
|
||||||
|
var hostname = "127.0.0.1";
|
||||||
|
var port = 3000;
|
||||||
|
var server = http.createServer(function (req, res) {
|
||||||
|
res.statusCode = 200;
|
||||||
|
res.setHeader("Content-Type", "text/plain");
|
||||||
|
res.end("Hello World\n");
|
||||||
|
});
|
||||||
|
server.listen(port, hostname, function () {
|
||||||
|
console.log("Server running at http://" + hostname + ":" + port + "/");
|
||||||
|
});
|
||||||
|
//# sourceMappingURL=index.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,+BAAiC;AACjC,2BAA6B;AAE7B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAElB,IAAM,QAAQ,GAAG,WAAW,CAAC;AAC7B,IAAM,IAAI,GAAG,IAAI,CAAC;AAElB,IAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,UAAC,GAAG,EAAE,GAAG;IACxC,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC;IACrB,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC5C,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,8BAA4B,QAAQ,SAAI,IAAI,MAAG,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"}
|
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"name": "nhentai",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@types/dotenv": {
|
||||||
|
"version": "6.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/dotenv/-/dotenv-6.1.0.tgz",
|
||||||
|
"integrity": "sha512-gmbNb7V1LbJQA4MmH0hVFgqY1cyKsa6RvKC1Xrq0WBnZ0JuuvXKciXx/s8dN0LVXCJd8xO6wIaSFSyUIoGph9g==",
|
||||||
|
"requires": {
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/node": {
|
||||||
|
"version": "11.11.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.0.tgz",
|
||||||
|
"integrity": "sha512-D5Rt+HXgEywr3RQJcGlZUCTCx1qVbCZpVk3/tOOA6spLNZdGm8BU+zRgdRYDoF1pO3RuXLxADzMrF903JlQXqg=="
|
||||||
|
},
|
||||||
|
"dotenv": {
|
||||||
|
"version": "6.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.2.0.tgz",
|
||||||
|
"integrity": "sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"name": "nhentai",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": ".",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node out/index.js",
|
||||||
|
"watch": "tsc --watch",
|
||||||
|
"build": "tsc --build tsconfig.json"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/dotenv": "^6.1.0",
|
||||||
|
"@types/node": "^11.11.0",
|
||||||
|
"dotenv": "^6.2.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
import * as dotenv from "dotenv";
|
||||||
|
import * as http from "http";
|
||||||
|
|
||||||
|
dotenv.config({});
|
||||||
|
|
||||||
|
const hostname = "127.0.0.1";
|
||||||
|
const port = 3000;
|
||||||
|
|
||||||
|
const server = http.createServer((req, res) => {
|
||||||
|
res.statusCode = 200;
|
||||||
|
res.setHeader("Content-Type", "text/plain");
|
||||||
|
res.end("Hello World\n");
|
||||||
|
});
|
||||||
|
|
||||||
|
server.listen(port, hostname, () => {
|
||||||
|
console.log(`Server running at http://${hostname}:${port}/`);
|
||||||
|
});
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"module": "commonjs",
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"removeComments": true,
|
||||||
|
"preserveConstEnums": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"outDir": "out/"
|
||||||
|
},
|
||||||
|
"include": ["src/**/*"],
|
||||||
|
"exclude": ["node_modules", "**/*.spec.ts"]
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"extends": "tslint:recommended",
|
||||||
|
"rules": {
|
||||||
|
"max-line-length": {
|
||||||
|
"options": [120]
|
||||||
|
},
|
||||||
|
"new-parens": true,
|
||||||
|
"no-arg": true,
|
||||||
|
"no-bitwise": true,
|
||||||
|
"no-conditional-assignment": true,
|
||||||
|
"no-consecutive-blank-lines": true,
|
||||||
|
"no-console": false
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue