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.
updatable-log
Advanced tools
Readme
pretty logger with the ability to update lines in place
const log = require('updatable-log');
const chalk = require('chalk');
const delay = require('delay');
async function exampleApp({ quiet }) {
// ignore everything except log.important() and log.error()
log.quiet = quiet;
log.info(chalk.green('E X A M P L E - A P P'));
log.info('v1.2.0');
for (let page = 0; page < 40; page++) {
await fetchData(page);
}
log.clear();
console.log('call log.clear() before printing with the built-in console.log()');
try {
printResult();
} catch (e) {
log.error(e);
}
}
async function fetchData(page) {
log.update('fetching data from:', `http://get-data.com?page=${page}`);
await delay(100);
if (page === 10) {
log.warn('invalid data, skipping page', page);
}
}
function printResult() {
log.important(
JSON.stringify(
{
age: 6,
name: 'Ender Wiggin',
},
null,
2
)
);
this.will.throw.a.null.pointer.exception();
}
To run this example yourself:
git clone https://github.com/noahsug/updatable-log.git
cd updatable-log
npm i
npm run example
FAQs
pretty logger with the ability to update lines in place
The npm package updatable-log receives a total of 92,306 weekly downloads. As such, updatable-log popularity was classified as popular.
We found that updatable-log 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.