Generate Emoji data in multiple formats
npm install -g @dofy/emojidb
# or
yarn global add @dofy/emojidb
# run
emojidb -t json -f yahaha
# help
emojidb --help
- Copy any
dfXXX.ts
under thelib/formators
folder - Modify the content in the
output
method, process the content ofdata
to return the required format - Register this
Formator
inlib/Formator.ts
- Import the file
import dfXXX from './formators/dfXXX'
- Add the new format to the
types
array
- Import the file
- The help content and format support will be completed automatically
Tips:
Refer to the
data
structure./templates/template.json
file
- Data source: https://www.unicode.org/Public/emoji