Example:
{
"name": "myapp",
"version": "1.0.0"
}
🧠 126. What is nodemon?
nodemon automatically restarts server after code changes.
Install:
npm install -g nodemon
🧠 127. What are Streams in Node.js?
Streams process data piece by piece instead of loading all at once.
Types:
• Readable
• Writable
• Duplex
• Transform
Benefits:
✅ Memory efficient
✅ Faster processing
🧠 128. What is Buffering?
Buffer temporarily stores binary data in memory.
Example:
const buffer = Buffer.from("Hello");
🧠 129. What is Async Middleware?
Middleware using async/await.
Example:
app.get("/", async (req, res) => {
const data = await fetchData();
res.json(data);
});
🧠 130. What is Rate Limiting?
Rate limiting restricts number of requests from users.
Benefits:
✅ Prevents abuse
✅ Protects APIs
✅ Improves security
Example:
const rateLimit = require("express-rate-limit");
Double Tap ❤️ For Part-6
Post #3763
2.73K
- ❤ 11