
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
on-rendered
Advanced tools
Emit events when express start render and finish render.
This is a Node.js module available through the
npm registry. Installation is done using the
npm install command:
$ npm install on-rendered -S
var onRender = require('on-rendered')
app.use(onRender());
This will add the event render to fire when template are rendered. And a
event beforeRender add to template is ready to render.
var bodyParser = require('body-parser')
var cookieParser = require('cookie-parser')
var express = require('express')
var onRender = require('on-rendered')
// example of using this top-level; note the use of haltOnTimedout
// after every middleware; it will stop the request flow on a timeout
var app = express()
app.use(onRender())
app.use(bodyParser())
app.use(cookieParser())
app.get('/path', function(req, res) {
res.on('render', function() {
console.log('after render and before send')
});
res.on('beforeRender', function() {
console.log('before render');
});
res.render('foo.html');
})
app.listen(3000)
FAQs
emit events when express start render and finish render.
We found that on-rendered 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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.