Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
console-hue
Advanced tools
Readme
This tiny module is basically an improved version of the native console.log
, adding colour support for different type of messages and a "Stringify" functionality by default for Objects
and Arrays
.
You can install with [npm]:
$ npm install --save console-hue
When you import the module, the following methods will be exposed:
const consoleh = require('console-hue')
{ error: [Function],
success: [Function],
warn: [Function],
debug: [Function],
log: [Function],
blue: [Function],
pink: [Function],
red: [Function],
green: [Function],
yellow: [Function],
cyan: [Function] }
And then you can use consoleh
with any of the previous methods to get a colourful reply in the console:
> const consoleh = require('console-hue')
// Green output
consoleh.success('This message should be green')
// Red output
consoleh.error('This message should be red')
// Yellow output
consoleh.warning('This message should be yellow')
As described before the module will attempt to "Stringify" the Arrays and Objects passed in the message sent to the module. You can override this behaviour by passing true
as the second parameter:
> const consoleh = require('console-hue')
// With default Stringigy behaviour
consoleh.log({fn: function(msg) {console.log(msg)}})
{}
// Getting the original msg without Stringigy
consoleh.log({fn: function(msg) {console.log(msg)}}, true)
[object Object]
Copyright © 2019, Juan Convers. Released under the MIT License.
FAQs
Description
The npm package console-hue receives a total of 206 weekly downloads. As such, console-hue popularity was classified as not popular.
We found that console-hue 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.