
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Terminal string styling done right
npm install --global chalk-cli
$ chalk --help
Usage
$ chalk <style> ... <string>
$ echo <string> | chalk <style> ...
Options
--template, -t Style template. The `~` character negates the style.
--stdin Read input from stdin rather than from arguments.
--no-newline, -n Don't emit a newline (`\n`) after the input.
--demo Demo of all Chalk styles.
--color, -c Force color support.
Examples
$ chalk red bold 'Unicorns & Rainbows'
$ chalk -t '{red.bold Unicorns & Rainbows}'
$ chalk -t '{red.bold Dungeons and Dragons {~bold.blue (with added fairies)}}'
$ echo 'Unicorns from stdin' | chalk --stdin red bold
See supported styles.
{red.bold unicorn}
{red.bold unicorns} are {blue FUN!!!}
{red.bold unicorn {blue.underline dancing}}
{red red {~red normal}}
{red hey\} still red} not red
{red hey\\} not red
FAQs
Terminal string styling done right
The npm package chalk-cli receives a total of 5,796 weekly downloads. As such, chalk-cli popularity was classified as popular.
We found that chalk-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.