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.
yoo-hoo
Advanced tools
Readme
Yoo-Hoo! It's a tiny library for printing a noticeable banner of words for your project. Such as below,
Maybe useful when you want a banner for your project. Have fun!
npm i yoo-hoo
import { yo } from 'yoo-hoo';
yo('GOOD');
or in commonjs
const { yo } = require('yoo-hoo');
yo('GOOD');
yo(text: string, options?: Option): string[]
It will return the lines for printing. Then you can print it yourself line by line.
Options:
object
Specify the font family. Optional. See more in the Built-In Fonts Section.number
The number of spaces between two characters. Default 1
.number
The number of spaces before the text. Default 0
.number
The max length of lines. If exceed maxLineWidth
following characters will get a line feed. Default Infinity
.string
Setting the color for print. Default none
. There contains several values:
random
choosing a random color from the paletterainbow
printing rainbow fonts 🌈none
without color settingboolean
Whether to prevent print characters when calling yo()
. Default false
.For example,
yo('ho', {
color: 'blue',
spacing: 2,
});
Then it will print a blue HO
with two spaces between H and O.
Below is the fonts supported for the fontFamily
option:
You can import font sets from lib/fonts/xxx
and use it. Such as below:
import * as fontFamily from 'yoo-hoo/lib/fonts/ansi-shadow';
yo('yoo-hoo', {
fontFamily,
});
When not receiving a fontFamily
object, it will use the default font set.
🤘
yoo-hoo
can be used in both NodeJS and browsers.
A-Z
(letters will be converted to uppercase)0-9
·
*
-
|
Characters that are not supported will be ignored.
npm run example
/\\\ /\\\ /\\\\\\\\ /\\\\\\\\ /\\\ /\\\ /\\\\\\\\ /\\\\\\\\
\/\\\ /\\\ /\\\_____/\\\ /\\\_____/\\\ \/\\\ \/\\\ /\\\_____/\\\ /\\\_____/\\\
\/_\\\/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\
\/_\\\\ \/\\\ \/\\\ \/\\\ \/\\\ /\\\\\\\\\ \/\\\\\\\\\\\ \/\\\ \/\\\ \/\\\ \/\\\
\/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/_______/ \/\\\____/\\\ \/\\\ \/\\\ \/\\\ \/\\\
\/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\ \/\\\
\/\\\ \/_/\\\\\\\\\ \/_/\\\\\\\\\ \/\\\ \/\\\ \/_/\\\\\\\\\ \/_/\\\\\\\\\
\/_/ \/_______/ \/_______/ \/_/ \/_/ \/_______/ \/_______/
FAQs
Print a noticeable banner of words for your project. 🖨️
The npm package yoo-hoo receives a total of 2,771 weekly downloads. As such, yoo-hoo popularity was classified as popular.
We found that yoo-hoo 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.