1.1.0 ā€¢ Published 6 years ago

markdown-to-text-emoji v1.1.0

Weekly downloads
178
License
MIT
Repository
github
Last release
6 years ago

markdown to text emoji

npm

InputOutput
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

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago