Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@chatopera/ms-message
Advanced tools
This module creates message objects for SuperScript to consume.
You can add your own plugins to extend the message object to add extra properties to the message. For example, you might want to write a plugin that calls an external NLP service like wit.ai, or a plugin that does sentiment analysis on the message. Then, later reply plugin functions can use this extra information to do things like filter replies or add text programmatically to a reply.
createMessage(message, options, callback)
message
is the original text to create a message with. options
can have factSystem
, scope
and lang
.
lang
can only be set with "zh_CN" or "en_US" by now, "en_US" as used as default value.
loadPlugins(path)
path
is a directory path of files of plugins to load.
### Example plugin
An example plugin might look something like this:
const addWords = function addWords(cb) {
this.message.words = this.message.clean.split(' ');
cb();
};
This simply add a words
property to the message, so you could, say, filter out messages that weren't long or short enough in SuperScript.
FAQs
Manuscript Message Object
The npm package @chatopera/ms-message receives a total of 0 weekly downloads. As such, @chatopera/ms-message popularity was classified as not popular.
We found that @chatopera/ms-message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.