
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
message_parser.js
Advanced tools
const _MessageParser = require("message_parser.js");
const MessageParser = new _MessageParser("!"); // "!" would be the prefix
const MessageParser = new (require("message_parser.js"))("!");
// "!" would be the prefix
const MessageParser = new (require("message_parser.js"))("!");
// "!" would be the prefix
let text = "!help moderation";
text = MessageParser.parse(text);
if(text.parsed) { // If it was parsed
switch(text.command){ // ...
case "help": // and the command is help:
console.log("You asked for help on \"" + text.arguments[0] + "\".");
break;
}
}
> You asked for help on "moderation".
{
"command": "string",
"arguments": ["argument", "argument"],
"parsed": true
}

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
FAQs
A quick script that parses messages.
We found that message_parser.js 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.