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.
A lighter weight alternative to chalk
var TermColor = require("term-color");
console.log(TermColor.red('foo'))
raynos at raynos-SVS15127PXB ~/projects/chalk on master
$ npm ls --prod
chalk@1.0.0 /home/raynos/projects/chalk
├── ansi-styles@2.0.1
├── escape-string-regexp@1.0.3
├─┬ has-ansi@1.0.3
│ ├── ansi-regex@1.1.1
│ └── get-stdin@4.0.1
├─┬ strip-ansi@2.0.1
│ └── ansi-regex@1.1.1
└── supports-color@1.3.1
raynos at raynos-SVS15127PXB ~/projects/term-color on master
$ npm ls --prod
term-color@1.0.0 /home/raynos/projects/term-color
├── ansi-styles@2.0.1
└── supports-color@1.3.1
term-color
adds colors to your library but only costs 3
dependencies instead of costing 9 dependencies.
TermColor.black('text');
TermColor.red('text');
TermColor.green('text');
TermColor.yellow('text');
TermColor.blue('text');
TermColor.magenta('text');
TermColor.cyan('text');
TermColor.white('text');
TermColor.gray('text');
TermColor.bgBlack('text');
TermColor.bgRed('text');
TermColor.bgGreen('text');
TermColor.bgYellow('text');
TermColor.bgBlue('text');
TermColor.bgMagenta('text');
TermColor.bgCyan('text');
TermColor.bgWhite('text');
TermColor.reset('text');
TermColor.bold('text');
TermColor.dim('text');
TermColor.italic('text');
TermColor.underline('text');
TermColor.inverse('text');
TermColor.hidden('text');
TermColor.strikethrough('text');
npm install term-color
npm test
FAQs
A lighter weight alternative to chalk
The npm package term-color receives a total of 6,506 weekly downloads. As such, term-color popularity was classified as popular.
We found that term-color 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.