The vision is to provide front-end developers with easy access to emojis to relieve them from the tedious process of copy pasting emojis or unicodes into their projects. The library should be up to date with the latest version of Unicode (currently version 15).
The class EmojiProvider
contains all methods belonging to the the public interface.
The class UnicodeConverter
handles conversion of unicodes to emojis.
The class EmoticonConverter
handles conversion of emoticons to emojis.
The class EmojiResources
gathers all emojis into one array containing either all emojis or only emojis belonging to requested category.
As of now, the emojis are stored in classes. All emoji categories have its own class and one class has as only task to return an array of all emoji objects belonging to that category class.
OBS! Plans of migrating emoji data to json files or a REST API are under consideration. Do you want to help? To contribute, check below!
The requirements specification can be found here: ./release/requirements-specification.md
The test specification can be found here: ./release/test-specification.md
The test reports can be found here: ./release/test-reports/
The project follows the Javascript Standard Style.
- Fork the project on Github.
- Install dev dependencies (
npm install
). - Create a new feature branch (
git checkout -b my-awesome-new-feature
) - Add tests to your feature.
- If manual test, add test cases in
./release/test-specification.md
. - Make sure that all tests are passing when running the automatic unit tests (
npm test
) or testing manually. - Document both manual and automatic unit tests in a test report and add the report to
./release/test-reports/
. - Add your feature in
./release/requirements-specification.md
. Don't forget to add status! - Create a pull request!
In the project directory, you can run:
Runs the application.
Checks the code for linting errors.
Fixes existing linting errors.
Runs the automatic unit tests.
[ ] Tag-to-emoji conversion for text inputs
[ ] Check if the used browser supports an emoji
[ ] Migrate emoji data from classes to .json files or a REST API