0.0.1 • Published 3 years ago

express-url-prettyifyer v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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