
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
dummy-static-middleware
Advanced tools
which prevents annoying 'not found' errors at development environment.
npm install dummy-static-middleware
app.use(express.static('static/'));
app.use(require('dummy-static-middleware')([
{url: /\.(jpeg|jpg|JPG|png|gif)$/, reply: 'static/images/dummy404.png'},
{url: '/some.txt', reply: 'static/dummy.txt'}
]));
url
could be regular expression or string for exact matching, reply
is
path to file which content will be sent in the response.
FAQs
Dummy static middleware for expressjs
The npm package dummy-static-middleware receives a total of 2 weekly downloads. As such, dummy-static-middleware popularity was classified as not popular.
We found that dummy-static-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.