Skip to content

A Node.js module to convert text into various font styles.

License

Notifications You must be signed in to change notification settings

AliAryanTech/Font-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

font-style

NPM

A Node.js module to convert text into various font styles.

Installation

You can install font-style using npm or yarn:

npm install font-style

or

yarn add font-style

Usage:

The font-style module provides a function fontStyle(text, font) that takes two parameters:

  • text (required): The text you want to transform.
  • font (optional): The font style you want to apply. Default is 'black-square'. Here's an example usage:
const fontStyle = require('font-style');

// Transform text with default font style (black-square)
const text1 = 'Hello World';
const result1 = fontStyle(text1);
console.log(result1);

// Transform text with small-caps font style
const text2 = 'Lorem Ipsum';
const result2 = fontStyle(text2, 'small-caps');
console.log(result2);

Output:

🅗🅔🅛🅛🅞 🅦🅞🅡🅛🅓
ʟᴏʀᴇᴍ ɪᴘꜱᴜᴍ

Available Fonts

const { getAllFonts } = require('font-style')

console.log('Available fonts:')
console.log(getAllFonts)

Contribution

Contributions to the font-style module are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.

Credits

The font-style module is created and maintained by AliAryanTech.

About

A Node.js module to convert text into various font styles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published