num-emoji-transformer

1.0.3 • Public • Published

num-emoji-transformer

num-emoji-transformer is a simple TypeScript module that converts numbers into emoji representations. It also retains symbols like -, +, ×, ÷, etc., without converting them.

Installation

You can install this package via npm:

npm install num-emoji-transformer

Usage

You can use this package via npx:

npx num-emoji-transformer <your-number-or-expression> 

For example:

npx num-emoji-transformer 1-2-3

will output:

1️⃣ - 2️⃣ - 3️⃣

Example

import numberToEmoji from 'num-emoji-transformer';

const result = numberToEmoji('123');
console.log(result); // Outputs: 1️⃣2️⃣3️⃣

const expression = numberToEmoji('1-2+3');
console.log(expression); // Outputs: 1️⃣ - 2️⃣ + 3️⃣

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i num-emoji-transformer

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

14.8 kB

Total Files

7

Last publish

Collaborators

  • arucraft2022