Skip to content

♻️ Simple way to convert strings to gitmojis

License

Notifications You must be signed in to change notification settings

itpropro/convert-gitmoji

 
 

Repository files navigation

convert-gitmoji

npm version npm downloads Github Actions CI License

Simple way to convert strings to gitmojis ♻️

Install

# Using npm
npm install convert-gitmoji

# Using yarn
yarn add convert-gitmoji

Usage

convert(content: string, withSpace?: boolean)

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)"

License

Published under MIT - Made with ❤️ by Conner Luka Bachmann

About

♻️ Simple way to convert strings to gitmojis

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 90.9%
  • JavaScript 9.1%