1.0.5 โ€ข Published 3 months ago

fontstyles v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

Fonstyles

NPM

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.

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago