1.1.0 ⢠Published 7 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,undefinedevaluate empty string.
Install
npm install markdown-to-text-emojiUsage
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