0.0.1 • Published 3 years ago
express-url-prettyifyer v0.0.1
URLPrettyifyer
Usage
const prettyify = require("express-url-prettyifyer")
const express = require("express")
const app = express()
const staticDir = __dirname + "/public"
app.use(express.static(staticDir))
prettyify(app, staticDir)
app.listen(5000)
now you should be able to have a file in the public folder called test.html, visit http://localhost:5000/test
and it will show you test.html without you having to add .html to the end of the url
0.0.1
3 years ago