Add CLI tool with emojigen command #4
📚 Ultimate Emoji Generator library for Swift
Swift 5.1 Python 3.7
mint install YutoMizutani/EmojiKit@1.2.0
make install
$ git clone https://github.com/YutoMizutani/EmojiKit.git $ cd EmojiKit $ make
Use as CLI
$ git clone https://github.com/YutoMizutani/EmojiKit.git $ cd EmojiKit $ make build $ .build/debug/emojigen <text> <output>
Use as dependency
Add the following dependency to your Package.swift manifest:
.package(url: "https://github.com/YutoMizutani/EmojiKit.git", .upToNextMinor(from: "1.2.0"),
And then import wherever needed: import EmojiKit
import EmojiKit
emojigen <text> <output>
import EmojiKit EmojiKit().generate( "絵文\n字。", imagePath: "out/emoji.png", textAlignment: .left, fontPath: "static/NotoSansMonoCJKjp-Bold.otf" )
More usages
More details and parameters are to see emoji-gen/emojilib and emoji-gen/libemoji
EmojiKit is released under the MIT License.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
EmojiKit
📚 Ultimate Emoji Generator library for Swift
Requirements
Swift 5.1 Python 3.7
Install
Mint
Install
Make
Swift Package Manager
Use as CLI
Use as dependency
Add the following dependency to your Package.swift manifest:
And then import wherever needed:
import EmojiKitUsage
Example
More usages
Parameters
More details and parameters are to see emoji-gen/emojilib and emoji-gen/libemoji
License
EmojiKit is released under the MIT License.