markdown-to-text-emoji

[![npm](https://img.shields.io/npm/dt/markdown-to-text-emoji.svg?style=for-the-badge)](https://www.npmjs.com/package/markdown-to-text-emoji)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
markdown-to-text-emoji
1.1.04 years ago4 years agoMinified + gzip package size for markdown-to-text-emoji in KB

Readme

markdown to text emoji
npm
|Input|Output| |---|---| |hello :smile: :smiling_imp::smile:|hello šŸ˜„ šŸ˜ˆšŸ˜„|
All primitive input evaluate String except null, undefined, null, undefined evaluate empty string.

Install

npm install markdown-to-text-emoji

Usage

import {textEmoji} from 'markdown-to-text-emoji'

textEmoji(`hello :smile: :smiling_imp::smile:`) // `hello šŸ˜„ šŸ˜ˆšŸ˜„`

Test

$ jest --coverage
 PASS  ./index.spec.ts
  emoji
    āœ“ emoji (4ms)
    āœ“ createMapMdToEmoji (1ms)
    āœ“ emojiMd
    āœ“ createRegExpTest (1ms)
    āœ“ textEmoji (3ms)

---------------------|----------|----------|----------|----------|-------------------|
File                 |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
---------------------|----------|----------|----------|----------|-------------------|
All files            |      100 |      100 |      100 |      100 |                   |
 emoji.ts            |      100 |      100 |      100 |      100 |                   |
 markdown-to-text.ts |      100 |      100 |      100 |      100 |                   |
---------------------|----------|----------|----------|----------|-------------------|

=============================== Coverage summary ===============================
Statements   : 100% ( 13/13 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 1/1 )
Lines        : 100% ( 13/13 )
================================================================================
Test Suites: 1 passed, 1 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        3.181s
Ran all test suites.
āœØ  Done in 3.68s.

emoji data markdown-it-emoji

LICENSE

MIT