express-static-files
v1.0.1
Published
Service Static Files On Express Server.
Downloads
22
Maintainers
Readme
Random Numbers Generator
Express Static File Server.
Installation
You can install the Express Static Files package using npm:
npm install express-static-files
Usage
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))
License
This project is released under the MIT License.
Free Package, Hell Yeah!
Contact
Author
卐🕉 Avinash Tare 🕉 卐