express-static-files

1.0.1 • Public • Published

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

License This project is released under the MIT License.
Free Package, Hell Yeah!

Contact

avinashtare.work@gmail.com

Author

卐🕉 Avinash Tare 🕉 卐

Package Sidebar

Install

npm i express-static-files

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • avinashtare