Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

Gemoji Parser 🚀

An NodeJS Github emoji parser with syntactic sugar.



Travis status
NPM version
NPM version

### Including gemoji

To get started with `gemoji-parser`, install it via npm.

```bash
$ npm install gemoji-parser
```

### Usage

You 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)