Loading AI tools
מוויקיפדיה, האנציקלופדיה החופשית
Express.js היא ספריית קוד פתוח מבוססת MVC, שנוצרה עבור Node.js. Express נוצרה תחת רישיון MIT, והיא מתוחזקת על ידי הקהילה.
להלן דוגמת קוד של שרת http המאזין בפורט 3000, ובתגובה לבקשה דוגמת "http://localhost:3000/john" מדפיס לקונסולה את הבקשה, ומדפיס לדפדפן "hello john":
const express = require("express");
const app = express();
const port = process.env.PORT || 3000;
app.use((req,res,next) => {
console.log(req.url)
next()
})
app.get("/",(req,res) =>{
res.send(`hello ${req.url}`)
})
app.listen(port, () => {
console.log(`app started and listening on port ${port}`)
});
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.