Express Static File Server.
You can install the Express Static Files package using npm:
npm install express-static-files
In your express.js application, you can import this package and use to serve you static file with extra features.
const express = require("express")
const app = express()
const ExpressStatic = require("express-static-files")
const port = process.env.port || 5000
// Simple To use
app.use(ExpressStatic.static("public/")) // root folder public
app.get("/", (req, res) => {
res.send("Hello, World!")
})
app.listen(port, () => console.log("Server Running On Port " + port))
This project is released under the MIT License.
Free Package, Hell Yeah!
卐🕉 Avinash Tare 🕉 卐