Socket
Book a DemoInstallSign in
Socket

express-static-files

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-static-files

Service Static Files On Express Server.

1.0.1
latest
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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 🕉 卐

Keywords

express-static

FAQs

Package last updated on 11 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.