
Research
/Security News
Two Joyfill npm Beta Releases Compromised to Deliver DEV#POPPER Remote Access Trojan
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.
error-status-helper
Advanced tools
Extends express response middleware with status codes helper methods.
$ npm install error-status-helper
javascript
var express = require('express');
var errorStatus = require('error-status-helper');
var app = express();
app.use(errorStatus);
var express = require('express');
var _statusCodes = require('./statusCodes.js');
var errorStatus = require('error-status-hepler').use(_statusCodes);
var app = express();
app.use(errorStatus);
statusCode.js format
the default code is using the http code, you can define you own business code in statusCode property.
module.exports = {
Bad_Request: {
code: 400,
statusCode:401001,
message: {
en: "Bad Request"
}
},
}
You using in you code only available in express
app.use("/badRequest", function (req, res, next) {
res.Bad_Request();
})
app.use("/forbidden", function (req, res, next) {
var errMsg = {statusCode: -1, message: 'you can not use this interface'};
res.Forbidden(errMsg);
})
FAQs
Extends node.js response middleware with status codes helper methods.
The npm package error-status-helper receives a total of 0 weekly downloads. As such, error-status-helper popularity was classified as not popular.
We found that error-status-helper 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
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.

Security News
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.