moji-node

1.0.0 • Public • Published

Emoji-node

💻 Website

🛠️ Installation

To set up the project run the following command

npm install emoji-node

or if you use yarn

yarn add emoji-node

📰 Usage

Import into the file where you want to use this dependency:

const emojie = require('moji-node')

or

const {stringify, parse} = require('moji-node')

🪄 Stringify

the X function allows you to transform a text with emojis into code to be able to easily save them in a database

To transform a text that includes emojis you must use the stringify function :

let text = 'Hello ➰'
stringify(text)

He will return :

Hello [27B0]

🔎 Parse

The parse function is used when you want to transform a text with an emoji code

To display the text that has an emoji use the parse function

let text = 'Hello [27B0]'
parse(text)

He will return :

Hello ➰

Readme

Keywords

none

Package Sidebar

Install

npm i moji-node

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • palalalex
  • alexandrepletty