
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@blessed/themes
Advanced tools
Themes for TUI (terminal user inteface) apps created using blessed.
npm install @blessed/themes
Using yarn
yarn add @blessed/themes
Using pnpm
pnpm add @blessed/themes
Create a styles.js
file like this:
'use strict';
module.exports = function (colors) {
// Destructure the colors for easy access
const {
primary: { background, foreground },
normal: { red, green, blue, yellow, magenta, cyan },
} = colors;
return {
colors, // this is for inline usage of theme colors for text and labels
program: {
bg: background,
fg: foreground,
},
header: {
border: {
type: 'line',
fg: foreground,
bg: background,
},
style: {
fg: red,
bg: background,
},
},
};
};
Using the theme
// Import the theme colors
const colors = require('blessed-themes/theme/Gruvbox-Dark');
// Pass the theme colors to styles
const theme = require('./styles')(colors.colors);
// Initialize the program, to change the default color of the terminal screen
const program = blessed.program();
// Use the bg and fg colors from the theme for the program
program.bg(theme.program.bg);
program.fg(theme.program.fg);
// Get the styles of a widget from the theme
const { style, border } = theme.header;
const header = blessed.box({
parent: screen,
content: 'My Awesome CLI',
top: 0,
left: 0,
width: '30%',
height: '10%',
border,
style,
});
You can find the list of theme names from themes folder.
FAQs
Themes for blessed console apps
We found that @blessed/themes demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.