
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@anephenix/mcg
Advanced tools
A Node.js library and CLI for generating Objection.js Models and their supporting files. It helps to save time creating Models and their migrations, so that you can focus on implementing the business logic for your Node.js server-side project.
npm i @anephenix/mcg
You can use MCG via the command line:
npx mcg Post
This will do the following:
You can pass the following optional arguments:
There is also the option of setting these optional arguments in a mcg.config.js file that looks like this:
module.exports = {
testFolder: 'spec',
mainDir: 'app',
};
You can also use MCG programmatically, like this:
const mcg = require('@anephenix/mcg');
(async () => {
await mcg('Post');
})();
The mainDir and testFolder are optional 2nd and 3rd arguments to that command:
const path = require('path');
const mcg = require('@anephenix/mcg');
(async () => {
const mainDir = path.join(process.cwd(), 'app');
const testFolder = 'spec';
await mcg('Post', mainDir, testFolder);
})();
©2025 Anephenix OÜ. MCG is licensed under the MIT license.
FAQs
Model Component Generator for Objection.js
We found that @anephenix/mcg demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.