mirror of
https://github.com/excalidraw/excalidraw-libraries.git
synced 2026-05-17 13:30:41 +00:00
17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
var static = require("node-static");
|
|
|
|
var file = new static.Server(".");
|
|
PORT = 8080;
|
|
|
|
console.info(`Running at http://localhost:${PORT}`);
|
|
|
|
require("http")
|
|
.createServer(function (request, response) {
|
|
request
|
|
.addListener("end", function () {
|
|
file.serve(request, response);
|
|
})
|
|
.resume();
|
|
})
|
|
.listen(PORT);
|