♻️ Simple way to convert strings to gitmojis

Overview

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

You might also like...

Formats message strings with number, date, plural, and select placeholders to create localized messages

Formats message strings with number, date, plural, and select placeholders to create localized messages. Small. Between 700 bytes and 1.3 kilobytes (m

Oct 30, 2022

parses human-readable strings for JavaScript's Temporal API

🕑 temporal-parse What is the temporal-parse? Temporal is the next generation of JavaScript's standard Date API. It's currently proposed to TC39 (see:

Jan 2, 2023

Small js library to animate some writing effect through a list of strings. It also supports settings for typo errors, to make it more human likely.

Small js library to animate some writing effect through a list of strings. It also supports settings for typo errors, to make it more human likely.

Write and Delete Small js library to animate some writing effect through a list of strings. It also supports settings for typo errors, to make it more

Nov 15, 2022

This package will help parse OData strings (only the Microsoft Dataverse subset). It can be used as a validator, or you can build some javascript library which consumes the output of this library.

@albanian-xrm/dataverse-odata This package will help parse OData strings (only the Microsoft Dataverse subset). It can be used as a validator, or you

Oct 22, 2022

🪢 A really tiny library that generates classname strings.

cnz (“classnamez”) The smallest classnames-compatible package yet (I think). This is an extremely simple javascript utility for conditionally joining

Dec 15, 2022

Catalogist is the easy way to catalog and make your software and (micro)services visible to your organization in a lightweight and developer-friendly way.

Catalogist is the easy way to catalog and make your software and (micro)services visible to your organization in a lightweight and developer-friendly way.

catalogist 📚 📓 📒 📖 🔖 The easy way to catalog and make your software and (micro)services visible to your organization through an API You were a pe

Dec 13, 2022

This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way, this plugin works after page load.

This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way, this plugin works after page load.

Jquery-SingleImagePopup This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way

Aug 22, 2022

Yunisdev-table2csv - Lightweight library to convert HTML table to CSV file

Installation Add following HTML before body end: script src="https://yunisdev.github.io/table2csv/table2csv.min.js"/script !-- or -- script src

Oct 19, 2020

Convert JSON to human readable HTML

json.human.js: Json Formatting for Human Beings A small library to convert a JSON object into a human readable HTML representation that is easy to sty

Dec 3, 2022
Comments
  • feat(convert): Added whitespace options

    feat(convert): Added whitespace options

    For a clean history, please merge #3 first. This PR

    • Added whitespace options with backwards compat
    • Added whitespace tests
    • Fixed a bug with a missing : at green_heart
    • Added eslint TypeScript dev packages
    opened by itpropro 2
  • Possible performance improvements

    Possible performance improvements

    The current version is doing n (number of possible gitmojis) replacements that each do a replaceAll which iterates over the entire document. We can instead compile a regex (of Object.keys in the map) and match all possible emojies with one regex to replace.

    opened by pi0 1
Releases(v0.1.3)
  • v0.1.3(Nov 6, 2022)

    v0.1.3

    🚀 Enhancements

    • Switched to changelogen (354c77f)
    • emojis: Added 🧵 & 🦺 (f7517e5)

    🩹 Fixes

    • chore: Updated description (cddb0f8)
    • chore: Removed lock file (a4745e7)

    ❤️ Contributors

    • Conner Bachmann
    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Jul 5, 2022)

  • v0.1.1(Jul 5, 2022)

    🚀 Enhancements

    • convert: :sparkles: Added whitespace options (47d7d61)
    • chore: Fixed version (bcd8fd9)
    • convert: Added whitespace options (a403a3f)

    🩹 Fixes

    • chore: Bumped version (07a9c93)
    • chore: Removed yarn error log (418a0da)

    📖 Documentation

    • convert: :pencil: Added new "withSpace" options to README (142dcd9)

    🏡 Chore

    • release: 0.1.1 (b181660)

    ✅ Tests

    • convert: :white_check_mark: Added vitest, tests and tsconfig settings (aea4635)
    • convert: Added vitest, tests and tsconfig settings (1945f0b)

    ❤️ Contributors

    • Conner
    • Conner Bachmann
    • Jan-Henrik Damaschke

    Source code(tar.gz)
    Source code(zip)
  • v0.0.3(Jun 27, 2022)

    🚀 Enhancements

    • chore: Added test/code example :memo: (93732e7)
    • chore: Migrated to [email protected] (fef82d5)
    • chore: Improved performance using regex (d7a5abb)

    🩹 Fixes

    • chore: Optimized build settings (e767622)

    🏡 Chore

    • release: 0.0.3 (58b6523)

    ❤️ Contributors

    • Conner Bachmann

    Changes from v0.0.2...master

    Source code(tar.gz)
    Source code(zip)
  • v0.0.2(Jun 26, 2022)

Owner
Conner
Conner
Simple utils to pack arrays, objects and strings to a flat object (and back again).

packrup Simple utils to pack (and unpack) arrays and strings to a flat object. Status: In Development Please report any issues ?? Made possible by my

Harlan Wilton 15 Dec 23, 2022
🎨 Beautify your github profile with this amazing tool, creating the readme your way in a simple and fast way 🚀 The best profile readme generator you will find ⚡

Demo Profile Readme Generator The best profile readme generator you will find! About | Technologies | Requirements | Starting | Contributing ?? About

Mauro de Souza 476 Jan 1, 2023
Emoji - Use emoji names instead of Unicode strings. Copy-pasting emoji sucks.

Grammy Emoji Adds emoji parsing for grammY. Check out the official documentation for this plugin. While this draft is working, we still do not recomme

null 8 Sep 5, 2022
Compare camelized/dasherized/underscored strings each other 🤜🏿 🤛🏿

aynen Compare camelized/dasherized/underscored strings each other Install npm install aynen yarn add aynen Usage import aynen from 'aynen'; aynen('fo

null 4 Mar 25, 2022
A TypeScript namespace declaration for KeyboardEvent.key strings, just in case your code is allergic to enums.

ts-key-namespace A TypeScript namespace declaration for KeyboardEvent.key strings, just in case you prefer namespaces to enums. Largely based on ts-ke

Daniel Soohan Park 3 Apr 5, 2022
Transform URLs in strings to actual links.

Transform URLs in strings to actual links. It will find valid links in the given string and create <a> tags for it. Internally, it uses this Regex to

Prince Neil Cedrick Castro 7 Nov 4, 2022
Converts JSX to HTML strings at compile time.

unplugin-jsx-string Converts JSX to HTML strings at compile time. Installation npm i unplugin-jsx-string Vite // vite.config.ts import JsxString from

三咲智子 9 Sep 3, 2022
Construct ANSI colors strings from object descriptors.

ansi-construct Construct ANSI colors strings from object descriptors. Usage import { ansi } from 'ansi-construct' const item = ansi({ text: 'foo', co

Anthony Fu 22 Sep 8, 2022
Fix for Object.keys, which normally just returns an array of strings, which is not good when you care about strong typing

Welcome to ts-object-keys ?? Fix for Object.keys, which normally just returns an array of strings, which is not good when you care about strong typing

Funtal Foundation 1 Jul 4, 2022
A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

cryptoWriter.js A lightweight javascript library which creates brilliant text animation by rendering strings of random characters before the actual te

Keshav Bajaj 2 Sep 13, 2022