1.0.3 • Published 1 year ago

num-emoji-transformer v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago