{"_id":"@aylias/quickserve","_rev":"2-90dfa7328809dc47e2a2f1bd7639573a","name":"@aylias/quickserve","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@aylias/quickserve","version":"1.0.0","description":"A module to quickly set up an express server","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Aylias"},"license":"ISC","dependencies":{"express":"^4.17.1"},"devDependencies":{},"gitHead":"13380b35aa293489efd91ffaeb3f1fe329d6229d","_id":"@aylias/quickserve@1.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OvDmbVTGUj8m+8+F0BIfiR2hUNc9U1AIxT7DHvkx/D1NXQGDbqnEys9VByV127oeqZ9FlMmrtcehYALML/qbWQ==","shasum":"93486ecd865eac249a3ead79a17a7f2682210260","tarball":"https://registry.npmjs.org/@aylias/quickserve/-/quickserve-1.0.0.tgz","fileCount":3,"unpackedSize":2790,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr2K9CRA9TVsSAnZWagAAdhQQAJLXQ2zItnEBi5x9Ytlh\n+pDSZctMDgBItYEtXq4Z5cVyBFW40AZx9K60f2oA8cjLgOLdsfLHbunG82Br\nW17sgJqGIFVGJGwsEmDK+ccSKXXajD/e+Aqaw5ymYI4/1Jr+f3YGP2UI09fU\nocE9ii2OaNVLsvGD5cKu4GpNqM1p9VvXkXFMgMt55qEnCfD6idOFGtnM6VEh\nIUv+f8LRuKo3kWEpPYnDQXUY3BYqB5W8l10T2oY1paXIZx2t1VAQB6QL4wBg\nqSzXdIeiX2H8Op/0PeaVDYqoJqNLZtMdmWsRh1Fh+V43r3CakjpAyttOi9QJ\nVvm0V3xaRqwNhkanVZELZwT+c+weL9rP7pCd0kpUvB6HEsJ6WCHVdAYzPcAy\nrt1rsINDc91dbigk6R4Y+1NvNNyQgKxAEQlLuzT7PnHsQg9PBhVa9iAc6JC1\nHvGaHyA2508H5eeZVaJ0GnfxqjVa5wLnx235Ng4SpNCP9rT/tdMLe4f26tBP\nsoqfjoxx5lYmfW090HHkGJafBHTVMeOG2UyvTB7OHLIpQcWhdhTpZLchnqyk\nDthZT40r7jWE4ZHbyT77ziyMhMRAVoCIWzn+EGVm25EtOpXrsAhZXMgucjWN\n/oMWxWV2QdJ8vP0AXo+YsVIckBi5uzZT2nB0Lkk15hE6hK2b6VsflzNdi48v\njAjN\r\n=heeg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrCqoXGmCPnCR/yK/x+5MvzQcCfmJnXZbT2vOz3OYOJQIhAOO/SkKp+g35BxvzGFLmQq3B/hEcXopxEo+sk1pspHwY"}]},"_npmUser":{"name":"aylias","email":"AyliasTheCoder@protonmail.com"},"directories":{},"maintainers":[{"name":"aylias","email":"AyliasTheCoder@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quickserve_1.0.0_1638884029324_0.5251557411529575"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aylias/quickserve","version":"1.0.1","description":"A module to quickly set up an express server","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Aylias"},"license":"ISC","dependencies":{"express":"^4.17.1"},"devDependencies":{},"gitHead":"ea741d45d02f1f790a68abf20868e65c58dda3f2","_id":"@aylias/quickserve@1.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IdhrVWYLDt/7xga9Z7enbH48EA8Yhl/lGXm7rHGuJVxSAoTHFnkKSI5EIz6SAacdfiupT4eX6/zFy7HwqMKRew==","shasum":"1243eb025840668a8b1d43bc910962d84fee9c44","tarball":"https://registry.npmjs.org/@aylias/quickserve/-/quickserve-1.0.1.tgz","fileCount":3,"unpackedSize":2797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr2UyCRA9TVsSAnZWagAALscP/RB2QzsiiRiQo7QPZP8V\nPgIjV5sA15d8mZpZW7J8eQ0qcVWXeeh+xkXDfFTWAb45yvLK4gZQpNHfJB7i\nrq7heHvDFwnHgGBthvEqZCPI6C/PSVJfNYUHxnLRGpOi8jjRysL67Eo/mO+E\nlITNdhlzb8a9l7Z9wVOntwpRTSeuxL0sdOkHioJyi07bZJh4HNZa5AMXIjxZ\ncTQKFAGewcu287C7JWD+PVfTng9+Waj+Kxg8q6MYEwRlmIjKsLaof3vcHbS8\nGhbCteFsAn9vqfkK/ieTk27AOXdVnc4jrTBI/Qa07ZsWd1E7pIdd30GLePrQ\ny5YmsPdQc12XOsjYmcZPM4dzyxCbuR4uuTM55z1rmwRCWf+guIxkYyZcW/v3\nsD3Hodoc+OFjA6vp3wjoZWntRHpmWvPmvCE6ufjbXBeYsXSemVCPFNg1XWzD\n+ViN6QvW60p7phxV7awwhind14Gqo3K70VPsWfcZ21fBAnYkfed/4qWKMtBL\nizWllti2o8JRseYEmjPmOaZnEtV0FFaR+gvQD9ZdqJkOsfTR5JYx1+zRZOpD\nQ4C/MDYUT7D4u1Ql88ZCbnOz16FY8fdmmNrT4OSGkDp0DkBt2bvThaM2n+5k\nAV+kNtFuFKqzD7ZWuwjjSQDx5J215v0xOL/8Bd5o3kKs+gWYWZa4BLqNT0vF\nwgs8\r\n=Ig5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXzL9jkf6PlVR0ViPe47Y99dyDpQpKCZ9yIPZdWtdoaQIgPl5SanstYDw7HXPMrZy0E5qBHJhLR+79o20ArxAXu2Y="}]},"_npmUser":{"name":"aylias","email":"AyliasTheCoder@protonmail.com"},"directories":{},"maintainers":[{"name":"aylias","email":"AyliasTheCoder@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quickserve_1.0.1_1638884658728_0.10293057700715358"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-07T13:33:49.240Z","1.0.0":"2021-12-07T13:33:49.467Z","modified":"2022-04-04T17:14:32.094Z","1.0.1":"2021-12-07T13:44:18.923Z"},"maintainers":[{"name":"aylias","email":"AyliasTheCoder@protonmail.com"}],"description":"A module to quickly set up an express server","author":{"name":"Aylias"},"license":"ISC","readme":"QuickServe wraps the express functions into a simpler to use format, allowing you to use less lines of code to achieve the same result.\n\n```JavaScript\nconst qs = require('@aylias/quickserve')\n\nconst server = new qs(8055); // Create an instance of quickserve with the desired port\n\n// Use get and post methods like normal\nserver.get('/', (req, res) => {\n    res.writeHeader(200, { \"Content-Type\": \"text/html\" });\n    res.write(\"<h1>You used a normal get method</h1>\");\n    res.end();\n})\n\nserver.post('/', (req, res) => {\n    res.writeHeader(200, { \"Content-Type\": \"text/html\" });\n    res.write(`<h1>Your name is ${req.body.name}</h1>`);\n    req.end();\n})\n\n\n// Automatically get and serve files of type html, css, json, and javascript\nserver.getHTML('/main', './main.html');\nserver.getCSS('/main.css', './main.css');\nserver.getJSON('/stats', './stats.json');\nserver.getJS('/main.js', './main.js');\n\nserver.serve();\n```","readmeFilename":"readme.md"}