
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
connect-moment-i18n
Advanced tools
Creates a localized moment instance for connect/express
npm install connect-moment-i18n
Initialize the middleware with:
var express = require('express'),
connectMomentI18n = require('connect-moment-i18n'),
app = express();
app.use(connectMomentI18n());
By default, the middleware creates a localized moment instance set to the
language locale specified at req.locale
and attaches it to req.moment
.
You may pass an options hash, described below, to the constructor in order to
alter the middleware's behavior.
Specifies the key on the request object the locale can be found. Defaults to
locale
.
Specifies the key on the request object at which the localized moment will
be attached. Defaults to moment
.
Specifies the default locale to fallback to if a request does not include
a value at localeKey. Defaults to en
.
When true
, this will set the global default moment language (e.g.:
moment.lang('en');
) on instantiation. If false
, moment will set the
global language after the first server request which is likely unintended
behavior. Defaults to true
which is highly recommended.
FAQs
Creates a localized moment instance for connect/express
The npm package connect-moment-i18n receives a total of 2 weekly downloads. As such, connect-moment-i18n popularity was classified as not popular.
We found that connect-moment-i18n 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.