Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Terminal logging, benchmarking or simple debugging needs a colouring tool for aesthetic and readable purpose. We are presenting the supreme colouring tool that is easy to use in your code. It provides convenient syntax with the use of templated strings in JavaScript.
Use NPM to install Colorista locally in your project, or globally in your system.
$ npm install colorista
$ npm install --global colorista
After installation you can require Colorista and start colouring your terminal output.
const colorista = require('colorista');
// Hello, World!
const helloWorld = colorista`${'Hello, World!'}`([
{ fg: 'black', bg: 'white', modifiers: ['b'] }
]);
console.log(helloWorld);
// Server log
const clientIP = '192.168.1.1';
const log = colorista`Сlient at ${clientIP} ${'connected'} to the server at ${new Date().toUTCString()}`([
{ fg: 'red', bg: 'white', modifiers: ['b'] },
{ fg: 'green', modifiers: ['b', 'i'] },
{ fg: 'cyan', modifiers: ['b', 'u'] }
]);
console.log(log);
Colorista supports the following foreground and background colours:
white
black
red
green
blue
yellow
magenta
cyan
gray
bright white
bright red
bright green
bright blue
bright yellow
bright magenta
bright cyan
As well as following styles:
b
for boldi
for italicu
for underlined
for dims
for strikethroughc
for concealn
for inverse/negativeFAQs
Terminal colouring tool
The npm package colorista receives a total of 0 weekly downloads. As such, colorista popularity was classified as not popular.
We found that colorista 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.