
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@tryghost/pretty-cli
Advanced tools
A mini-module to style a sywac instance in a standard way
Either: npm install @tryghost/pretty-cli --save
Or: yarn add @tryghost/pretty-cli
Styled CLI output helpers and UI primitives for consistent Ghost command-line tooling.
E.g. const prettyCLI = require('@tryghost/pretty-cli');
prettyCLI is a pre-styled instance of the sywac API.
See the sywac quickstart and config guide for full usage.
Example:
#!/usr/bin/env node
const prettyCLI = require('@tryghost/pretty-cli');
prettyCLI
.command({
flags: 'myTask [option]',
desc: 'Run myTask',
run: (argv) => { ... do something here }
})
.parseAndExit();
Pretty CLI also provides a common UI interface, providing log functions to output coloured messages to the UI:
const ui = require('@tryghost/pretty-cli/ui');`
ui.log.info('Done');
ui.log.warn('Uh Oh', 'Something went wrong');
You can also grab a fresh instance of the api with prettyCLI.Api.get().
The style rules used are available at prettyCLI.styles.
yarn lint run just eslintyarn test run lint && testsCopyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.
FAQs
A mini-module to style a sywac instance in a standard way
The npm package @tryghost/pretty-cli receives a total of 9,605 weekly downloads. As such, @tryghost/pretty-cli popularity was classified as popular.
We found that @tryghost/pretty-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 30 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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.