
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.
@pmnps/tools
Advanced tools
This package provides some tools for writing plugins for pmnps.
You can use this api to log what happens in your plugin.
declare type Message = {
error(message: string): void;
info(message: string): void;
log(message: string): void;
success(message: string): void;
desc(message: string): void;
warn(message: string): void;
};
export declare const message: Message;
This API helps to manage the executions.
import type execa from 'execa';
export declare const execution: {
exec(
file: string,
params?: string[] | execa.Options,
options?: execa.Options
): execa.ExecaChildProcess;
command(params: string, options?: execa.Options): execa.ExecaChildProcess;
execute: typeof execa;
killChildProcess([pid, process]: [number, execa.ExecaChildProcess]): void;
};
This API helps to create a plugin command.
declare type PluginSlot = {
name: string;
option(
optionName: string,
shortcut: string,
optional?: { description?: string; inputType?: 'string' | 'boolean' }
): PluginSlot;
describe(description: string): PluginSlot;
require(requireFn: RequireFn): PluginSlot;
action(action: Action): Command;
};
export declare function createPluginCommand(name: string): PluginSlot;
This API helps to create a prompt for the user.
import type { Answers, QuestionCollection, ui, Separator } from 'inquirer';
declare function prompt<T extends Answers = Answers>(
questions: QuestionCollection<T>,
initialAnswers?: Partial<T>
): Promise<T> & { ui: ui.Prompt<T> };
export declare const inquirer: {
prompt: typeof prompt;
Separator: typeof Separator;
};
FAQs
These are tools for developing pmnps and its plugins
The npm package @pmnps/tools receives a total of 20 weekly downloads. As such, @pmnps/tools popularity was classified as not popular.
We found that @pmnps/tools 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.