1.0.5 โข Published 3 months ago
fontstyles v1.0.5
Fonstyles
Fontstyles is a lightweight npm package that allows you to style your text with various font styles. Easily apply different styles to your text, making it bold, italic, thin, or any other style you desire.
Installation
Install the package using npm:
npm install fontstyles
Usage
Import the fontstyles
module and use the available functions to style your text.
Example Usage:
Thin Fontstyle
const text = require('fontstyles');
// Apply thin style to the text
console.log(text.thin("The quick brown fox jumps over the lazy dog"));
// Result:
// ๐ณ๐๐พ ๐๐๐๐ผ๐ ๐ป๐๐๐๐ ๐ฟ๐๐ ๐๐๐๐๐ ๐๐๐พ๐ ๐๐๐พ ๐
๐บ๐๐ ๐ฝ๐๐
Bold Fontstyle
const text = require('fontstyles');
// Apply bold style to the text
console.log(text.bold("The quick brown fox jumps over the lazy dog"));
// Result:
// ๐ง๐ต๐ฒ ๐พ๐๐ถ๐ฐ๐ธ ๐ฏ๐ฟ๐ผ๐๐ป ๐ณ๐ผ๐
๐ท๐๐บ๐ฝ๐ ๐ผ๐๐ฒ๐ฟ ๐๐ต๐ฒ ๐น๐ฎ๐๐ ๐ฑ๐ผ๐ด
Roman Fontstyle
const text = require('fontstyles');
// Apply roman style to the text
console.log(text.roman("The quick brown fox jumps over the lazy dog"));
// Result:
// ๐๐๐ ๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐ ๐
๐๐
Underline Fontstyle
const text = require('fontstyles');
// Apply underline style to the text
console.log(text.underline("The quick brown fox jumps over the lazy dog"));
// Result:
// Tฬฒhฬฒeฬฒ qฬฒuฬฒiฬฒcฬฒkฬฒ bฬฒrฬฒoฬฒwฬฒnฬฒ fฬฒoฬฒxฬฒ jฬฒuฬฒmฬฒpฬฒsฬฒ oฬฒvฬฒeฬฒrฬฒ tฬฒhฬฒeฬฒ lฬฒaฬฒzฬฒyฬฒ dฬฒoฬฒgฬฒ
Monospace Fontstyle
const text = require('fontstyles');
// Apply monospace style to the text
console.log(text.monospace("The quick brown fox jumps over the lazy dog"));
// Result:
// ๐๐๐ ๐๐๐๐๐ ๐๐๐๐ ๐ ๐๐๐ก ๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐ฃ๐ข ๐๐๐
Available Styles
FontStyles provides several styles that you can apply to your text:
thin(text)
: Makes the text thin.bold(text)
: Makes the text bold.italic(text)
: Makes the text italic.underline(text)
: Underlines the text.strike(text)
: Strikes through text.monospace(text)
: A cool font similar to typewriter-style.roman(text)
: A curvy bold text style.bubble(text)
: โฝโโโโ โโโกโโ.italicBold(text)
: Same with italic but much bolder.squarebox(text)
: ๐ ๐ท๐ธ๐ ๐ ๐พ๐ ๐ป๐ณ ๐ธ๐ ๐พ๐ฝ ๐ต๐ธ๐ ๐ด!
Original Style
origin(text)
: Turn fonts back to the original.
How to use origin(text)?
Here's how we use it:
const text = require('fontstyles');
// This function turns font styles back to its original font.
console.log(text.origin("Tฬฒhฬฒeฬฒ qฬฒuฬฒiฬฒcฬฒkฬฒ ๐๐๐๐ค๐ ๐๐๐ฅ ๐๐๐๐๐ ๐๐๐๐ ๐ต๐ฉ๐ฆ ๐น๐ฎ๐๐ ๐ฝ๐๐"));
// Result:
// The quick brown fox jumps over the lazy dog
Feel free to combine these styles to create unique text fonts according to your needs.