Skip to content
/ emoji Public

😁 Simple emoji support for Deno πŸ¦• (validate, detect, trim, extract)

License

Notifications You must be signed in to change notification settings

s1mpson/emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

emoji GitHub

Simple emoji support for Deno (validate, detect, trim, extract)

Contents

Import

import { isEmoji } from "https://deno.land/x/emoji/mod.ts";

or

import { isEmoji } from "https://raw.githubusercontent.com/s1mpson/emoji/master/mod.ts";

Methods

isEmoji (string)

Returns true if provided string is a valid emoji.

isEmoji('πŸ€”'); // true
isEmoji('?'); // false

hasEmoji (string)

Returns true if there is at least one emoji in string.

hasEmoji('Sadly, no unicorns found..'); // false
hasEmoji('But we have one here: πŸ¦„'); // true

trimEmoji (string)

Returns the string cleaned from emoji.

trimEmoji('Just πŸ‘ Do πŸ‘ It'); // "Just  Do  It"

extractEmoji (string)

Returns an array of emoji extracted from the string.

extractEmoji('πŸ¦• ❀️ πŸ¦„'); // ["πŸ¦•", "❀️", "πŸ¦„"]

Author

License

Copyright Β© Max Mikhalchuk. Licensed under the MIT License.

About

😁 Simple emoji support for Deno πŸ¦• (validate, detect, trim, extract)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published