
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
chalk for the browser
Just like chalk but right in your browser. It uses HTMElement elements (b,s,i,span) and a little inline-css.
String.prototype$ npm install chalk-dom
<div id='console'></div>
import chalk from 'chalk-dom';
const consoleBox = document.getElementById('console');
function log(...data) {
consoleBox.innerHTML += `<div>${data.join(' ')}</div>`;
}
log(chalk.blue('Hello World!'));
To run the demo, clone this repo and simply open the index.html file in your browser.
The one difference with inken is styles can be chained with chalk-dom.
import chalk from 'chalk-dom';
...
log(chalk.bgBlack.yellow.italic('Hello, World!'));
bold - Make the text bold.dim - Make the text have lower opacity (sets css opacity to 0.5).italic - Make the text italic.underline - Underline the text.strikethrough - Put a horizontal line through the center of the text.inverse - Invert the background and foreground colors.fg - Set a custom foreground color (text color)bg - Set a custom background colorblackredgreenyellowbluemagentacyanwhitegraybgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhitebgGrayReleased under the MIT License
FAQs
Chalk for the browser
We found that chalk-dom 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.