1.1.0 ā¢ Published 6 years ago
markdown-to-text-emoji v1.1.0
markdown to text emoji
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