Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Color Logging with timers and other functionality to the console.
Require the clrlg inside your node app, and then use it instead of the standard console.log. Give more meaning to your console output, by adding colors, and timers.
To install the module before using it inside your project. We recommend installing it globally (-g)
$ npm install -g clrlg
To install just for your current project, from the project folder:
$ npm install --save clrlg
To use clrlg inside your project.
In your code Require the installed module.
const clrlg = require("clrlg");
Assign a variable to the constructor.
let c = new clrlg();
Now output from anywhere in your code.
c.lg("default color output");
Output different colors.
c.lg("red","red"); //add second parameter of color
c.lg("yellow","yellow");
c.lg("blue","blue");
c.lg("green","green");
c.lg("magenta","magenta");
c.lg("grey","grey");
c.lg("white","white");
c.lg("cyan","cyan");
c.lg("non color","fishcolor"); //enter a non existent color.
Output timestamp prefix.
c.timestamp = true; //turn on prefix timestamp
c.lg("output some text");
c.lg("red","red"); //add second parameter of color
c.lg("blue","blue");
c.timestamp = false; //turn off prefix timestamp
c.lg("blue without timestamp prefix","blue");
Setup a timer.
c.start("a"); //start timer
setTimeout(() => {
c.end("a");
},5500); //stop timers - after 5.5 seconds
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Color Log
The npm package clrlg receives a total of 4 weekly downloads. As such, clrlg popularity was classified as not popular.
We found that clrlg 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.