https://github.com/cameronhunter/emoji-lang
Calculate emoji positioning within strings
https://github.com/cameronhunter/emoji-lang
Last synced: 8 months ago
JSON representation
Calculate emoji positioning within strings
- Host: GitHub
- URL: https://github.com/cameronhunter/emoji-lang
- Owner: cameronhunter
- License: mit
- Created: 2016-02-01T21:34:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-21T20:47:25.000Z (about 9 years ago)
- Last Synced: 2025-09-23T01:22:41.875Z (9 months ago)
- Language: JavaScript
- Homepage: http://cameronhunter.github.io/emoji-lang
- Size: 464 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# emoji-lang
[](https://travis-ci.org/cameronhunter/emoji-lang) [](https://npmjs.org/package/emoji-lang) [](https://github.com/cameronhunter/emoji-lang/blob/master/LICENSE.md)
Try it out live in your browser: http://cameronhunter.github.io/emoji-lang
## Example usage
```javascript
import Parser from 'emoji-lang';
console.log(Parser.parse('Hello 🌎!'));
```
returns:
```json
{
"text": "Hello 🌎!",
"emoji": [
{ "character": "🌎", "indices": [6, 8] }
]
}
```
## Useful resources
* https://r12a.github.io/apps/conversion