Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
connect-placeholderimg
Advanced tools
#Connect Placeholder
A connect middleware to generate placeholder images
Connect Placeholder generates PNG images on the flight. Could be use as a replacement for Placehold.it.
Image generation relies on node-pureimage by Josh Marinacci.
This middleware is primarily intended as a development middleware for grunt-contrib-connect.
Note: this is a work in progress. Expect performance issues and headaches.
Install via npm:
npm install connect-placeholderimg --save-dev
In your Gruntfile.js connect
task require the module inside a middleware
option:
connect: {
options: {
middleware: function(connect, options, middlewares) {
middlewares.unshift(require('connect-placeholderimg')({
imagePath: '/placeholder/'
}));
return middlewares;
}
}
...
}
Then, assuming the default connect task configuration is in place, point images src
attribute to http://localhost:8000/placeholder/WxH
.
For URL format please refer to Placehold.it
Type: String
Default: '/placeholder/'
The base URI for placeholder images.
2014-12-31 v0.0.1 WIP release
FAQs
A connect middleware to generate placeholder images
The npm package connect-placeholderimg receives a total of 5 weekly downloads. As such, connect-placeholderimg popularity was classified as not popular.
We found that connect-placeholderimg 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.