
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
koa-nunjucks-volt
Advanced tools
Lightweight Koa middleware for Nunjucks.
npm install --save koa-nunjucks-2
For Koa 2, use the next tag
npm install --save koa-nunjucks-2@next
var koa = require('koa');
var app = koa();
var koaNunjucks = require('koa-nunjucks-2');
var path = require('path');
app.context.render = koaNunjucks({
ext: 'html',
path: path.join(__dirname, 'views'),
nunjucksConfig: {
autoescape: true
}
});
app.use(function*() {
yield this.render('home', {double: 'rainbow'});
});
this.render calls. Set to a falsy value to disable.response.body.Use ctx.state to make a variable available in all templates.
The configuration function returns a Nunjucks Environment which allows you to define custom filters, extensions etc.
app.context.render = koaNunjucks({
ext: 'html',
path: path.join(__dirname, 'views')
});
var nunjucksEnv = app.context.render.env;
nunjucksEnv.addFilter('shorten', function(str, count) {
return str.slice(0, count || 5);
});
FAQs
Lightweight Koa middleware for Nunjucks and volt syntax
The npm package koa-nunjucks-volt receives a total of 5 weekly downloads. As such, koa-nunjucks-volt popularity was classified as not popular.
We found that koa-nunjucks-volt 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.