
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
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.
date-input-prompt
Advanced tools
Simple interactive command line prompt to gather boolean input from users. Inspired by [prompts](https://www.npmjs.com/package/prompts#togglemessage-initial-active-inactive).
inquirer-toggleSimple interactive command line prompt to gather boolean input from users. Inspired by prompts.

npm install inquirer-toggle
yarn add inquirer-toggle
import toggle from 'inquirer-toggle';
const answer = await toggle({ message: 'Continue?' });
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| message | string | yes | - | The question to be displayed to the user. |
| default | boolean | no | false | The default answer when the user doesn't provide one. |
| theme | Object | no | - | An object to customize the look of the prompt. |
| theme.active | string | no | "yes" | The text to display for the active part of the toggle. |
| theme.inactive | string | no | "no" | The text to display for the inactive part of the toggle. |
| theme.prefix | string | no | chalk.green('?') | The prefix to display before the message. |
| theme.style | Object | no | - | An object to customize the styles of the prompt. |
| theme.style.message | (string) => string | no | chalk.bold | A function to style the message. |
| theme.style.answer | (string) => string | no | chalk.cyan | A function to style the answer. |
| theme.style.highlight | (string) => string | no | chalk.cyan | A function to style the highlighted user selection. |
You can theme a prompt by passing a theme object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.
type Theme = {
message: string;
default?: boolean;
theme?: {
active?: string;
inactive?: string;
prefix?: Theme["prefix"];
style?: {
message?: Theme["style"]["message"];
answer?: Theme["style"]["answer"];
highlight?: Theme["style"]["highlight"];
}
};
};
Copyright (c) 2024 Sertac Karahoda
Licensed under the MIT license.
FAQs
Simple interactive command line prompt to gather boolean input from users. Inspired by [prompts](https://www.npmjs.com/package/prompts#togglemessage-initial-active-inactive).
We found that date-input-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
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.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.