Simple way to convert strings to gitmojis ♻️
# Using npm
npm install convert-gitmoji
# Using yarn
yarn add convert-gitmoji
Convert all gitmojis in a string
withSpace
is default false
, if true
its sets a " " after the converted gitmoji
// CommonJS
const { convert } = require("convert-gitmoji");
// ESM
import { convert } from "convert-gitmoji";
convert(':arrow_up: bump qs from 6.10.3 to 6.10.4 (xxx) - **helper:** :pencil: Updated TSDoc (xxx)', true);
--> "⬆️ bump qs from 6.10.3 to 6.10.4 (xxx) - **helper:** ✏️ Updated TSDoc (xxx)"
Published under MIT - Made with ❤️ by Conner Luka Bachmann