Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xch4z/gemoji-parser
🚀 A GitHub emoji code parser.
https://github.com/0xch4z/gemoji-parser
emoji nodejs parser
Last synced: about 1 month ago
JSON representation
🚀 A GitHub emoji code parser.
- Host: GitHub
- URL: https://github.com/0xch4z/gemoji-parser
- Owner: 0xch4z
- License: mit
- Created: 2017-09-10T19:20:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T06:15:32.000Z (over 5 years ago)
- Last Synced: 2024-12-12T05:34:16.511Z (about 2 months ago)
- Topics: emoji, nodejs, parser
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Gemoji Parser 🚀
An NodeJS Github emoji parser with syntactic sugar.
### Including gemoji
To get started with `gemoji-parser`, install it via npm.
```bash
$ npm install gemoji-parser
```
### UsageYou can use `gemoji-parser` on [es6 template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) or standard strings as parameters.
```js
import gemoji from 'gemoji-parser'const myGemojiLiteral = gemoji`
foo :floppy_disk: bar :heart: bazz :+1:
`
// => `foo 💾 bar ❤️ bazz 👍🏽`const myGemojiString = 'I :heart: gemojis!'
gemoji(myGemojiString)
// => `I ❤️ gemojis!`
```### License
MIT © [Charles Kenney](https://github.com/charliekenney23)