Skip to content

Commit

Permalink
feat(chore): integrated core functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Jun 25, 2022
1 parent 6053187 commit 96e190a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,11 @@ const gitmojis = {
":technologist:": "🧑‍💻",
":money_with_wings:": "💸",
};

export function convert(content: string, withSpace?: boolean) {
if (!withSpace) withSpace = false;
Object.entries(gitmojis).forEach(([key, value]) => {
content = content.replaceAll(key, value);
});
return content;
}

0 comments on commit 96e190a

Please sign in to comment.