
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
console-prettify
Advanced tools
扩展console,增加log、warn、error、info颜色输出。并新增 blue、cyan、green、magenta方法。
npm install console-prettify
require('console-prettify')();
console.log('hello console');
默认没有前缀,如要输出前缀,传参即可
require('console-prettify')({
prefix: true
});
console.log('log')
console.info('info')
结果:
log: log
info: info
error: info
如果默认样式满足你的需求,你可以通过theme参数自定义样式。
require('console-prettify')({
prefix: true,
theme:{
log: ['underline' ,'green', 'redBG']
}
});
console.log('hello log')
输出:
log:hello log
| 名称 | 示例 |
|---|---|
| bold | 粗体 |
| underline | 下划线_ |
| inverse | 反色 |
| strikethrough |
有些属性貌似不支持,貌似我的Mac就不支持删除线
| 属性 | 示例 |
|---|---|
| white | ... |
| grey | ... |
| black | ... |
| blue | ... |
| cyan | |
| green | |
| magenta | |
| red | |
| yellow |
| 属性 | 示例 |
|---|---|
| whiteBG | ... |
| greyBG | ... |
| blackBG | ... |
| blueBG | |
| cyanBG | |
| greenBG | |
| magentaBG | |
| redBG | |
| yellowBG |
FAQs
readme.md
We found that console-prettify 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.