Skip to content

felipeatsix/PSEmoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSEmoji

PowerShell Gallery Version PowerShell Gallery

Render emojis on your scripts outputs 🙂

Installation

# install module
Install-Module -Name PSEmoji -Repository PSGallery

# import module
Import-Module -Name PSEmoji

How to access your emojis

After you install and import PSEmoji module, this will export a new variable $PSEMOJI.
The $PSEMOJI variable is an object instance of a custom class psemoji and this is what you'll use for accessing your emojis. The emojis will be stored on nested properties of property emojis.

# Syntax example: $PSEMOJI.emojis.[emoji-category].[emoji-name]
$PSEMOJI.emojis.face.happy

Managing your emojis

There are 4 functions for manipulating $PSEMOJI:

# Create new emoji category
New-PSEmojiCategory -Name <string>

# Adds new emojis
Add-PSEmoji -EmojiCategory <string> -EmojiName <string> -EmojiUnicode <string>

# Removes existent emojis
Remove-PSEmoji -EmojiCategory <string> -EmojiName <string>

# Removes existent emoji category
Remove-PSEmojiCategory -Name <string>

Importing / Exporting

There'll be two functions available for importing/exporting your emojis so you can keep your created emojis with you anywhere!

# Export your emojis
Export-PSEmojiUnicodeJson -OutFilePath "[file system path of your choice]"

# Import your emojis
Import-PSEmojiUnicodeJson -Path "[path to your EmojiUnicode.json file]"

Opening unicode charts on a web browser

The $PSEMOJI object contains a method UnicodeCharts_Open() which will pop up your default browser and redirect you to a page with the emoji unicode chart so you can know which emoji unicode input to provide on Add-PSEmoji function.

$PSEMOJI.UnicodeCharts_Open()

DEMO

Creating new emoji category and adding a new emoji to it

example

Running tests with your emojis

tests

Monitoring Computer RAM

testRam

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published