Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denosaurs/emoji
🦄 Emojis for dinosaurs
https://github.com/denosaurs/emoji
deno emoji hacktoberfest unicode utils
Last synced: 24 days ago
JSON representation
🦄 Emojis for dinosaurs
- Host: GitHub
- URL: https://github.com/denosaurs/emoji
- Owner: denosaurs
- License: mit
- Created: 2020-09-03T00:00:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T21:22:12.000Z (11 months ago)
- Last Synced: 2024-04-14T02:19:49.820Z (7 months ago)
- Topics: deno, emoji, hacktoberfest, unicode, utils
- Language: TypeScript
- Homepage: https://deno.land/x/emoji
- Size: 67.4 KB
- Stars: 19
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-starred - denosaurs/emoji - 🦄 Emojis for dinosaurs (hacktoberfest)
README
# emoji
[![Tags](https://img.shields.io/github/release/denosaurs/emoji)](https://github.com/denosaurs/emoji/releases)
[![CI Status](https://img.shields.io/github/actions/workflow/status/denosaurs/emoji/checks.yml?branch=main)](https://github.com/denosaurs/emoji/actions)
[![License](https://img.shields.io/github/license/denosaurs/emoji)](https://github.com/denosaurs/emoji/blob/master/LICENSE)## Usage
```typescript
import * as emoji from "https://deno.land/x/emoji/mod.ts";// returns the emoji code for coffee
emoji.get("coffee");// `.get` also supports github flavored markdown emoji
emoji.get(":fast_forward:");// returns the alias "coffee"
emoji.alias(emoji.get("coffee"));// replaces all :emoji: with the actual emoji, in this case: returns "I ❤️ ☕️!"
emoji.emojify("I :heart: :coffee:!");// replaces the actual emoji with :emoji:, in this case: returns "I :heart: :pizza:"
emoji.unemojify("I ❤️ 🍕");// returns a random emoji + key, e.g. `{ emoji: '❤️', key: 'heart' }`
emoji.random();// Strips the string from emoji's, in this case returns: "low disk space".
emoji.strip("⚠️ 〰️ 〰️ low disk space");// Replace emoji's by callback method: "warning wavy_dash wavy_dash low disk space"
emoji.replace("⚠️ 〰️ 〰️ low disk space", (emoji) => `${emoji.aliases[0]}`);
```## Other
### Related
- [node-emoji](https://github.com/omnidan/node-emoji) - simple emoji support for
node.js projects### Contribution
Pull request, issues and feedback are very welcome. Code style is formatted with
deno fmt and commit messages are done following Conventional Commits spec.### Licence
Copyright 2020-2022, the denosaurs team. All rights reserved. MIT license.