
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A wrapper module of the express-handlebars for x-css.
[![npm version][npm-badge]][npm] [![dependency status][dep-badge]][dep-status]
Install using npm:
$ npm install x-views
Same ways to use the express-handlebars:
app.js:
var express = require('express');
var x-views = require('x-views');
var app = express();
var xv = x-views({
defaultLayout: 'main',
extname: '.hbs'
});
app.engine('hbs', xv.engine);
app.set('view engine', 'hbs');
app.get('/', function (req, res) {
res.render('home');
});
app.listen(3000);
views/layouts/main.hbs:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example App</title>
</head>
<body>
{{{body}}}
</body>
</html>
views/home.hbs:
<h1>Example App: Home</h1>
You can see the <style></style> tag at the end of HTML when you right-click on your browser to see the page source code.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example App</title>
</head>
<body>
<h1>Example App: Home</h1>
<style></style>
</body>
</html>
Note: The style tag is inserted by x-views according to x-css rules. That is the x-views' mission.
MIT
FAQs
A wrapper module of the express-handlebars for x-css.
We found that x-views 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.