
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Instead of doing this
var http = require('http'),
myModule = require('./lib/myModule'),
User = require('./lib/models').User;
// rest of your code
you do
require("them")(function(http, myModule, User) {
// rest of you code
})
npm install them --save
You must initialize them before you use it, because you have to tell what is your root module and all the required modules should be relative to that.
require('them').init(module, [mapping]);
Example:
require('them').init(module, {
_: "underscore",
email: "./services/email",
User: "./models/models#User",
});
Example
require("them")(function(http, _, email, User) {
// you code
});
FAQs
Easier node require
The npm package them receives a total of 38 weekly downloads. As such, them popularity was classified as not popular.
We found that them 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.