Skip to content

Commit

Permalink
feat(examples): add some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sensone committed Feb 15, 2017
1 parent 61212ea commit ca516e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ convertText2Smiles(text, [backgroundSmile = '🤘', textSmile = '💀', countSym

```javascript
// var convertText2Smiles = require('text2smiles').default;
import convertText2Smiles from 'text-of-smiles';
import convertText2Smiles from 'text2smiles';

// should display the text above
console.log(convertText2Smiles('hello, world', '👀', '🌚', 6));
Expand Down
8 changes: 8 additions & 0 deletions src/examples/1/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import convertText2Smiles from '../../';

// should display the text above
console.log(convertText2Smiles('hello, world'));
console.log(convertText2Smiles('hello, world', '👀', '👍'));
console.log(convertText2Smiles('hello, world', '💀', '😡', 6));
console.log(convertText2Smiles('hello, world', '🙎', '💚', 16));
console.log(convertText2Smiles(' keep calm and use text2smiles', '👳', '💘', 11));

0 comments on commit ca516e8

Please # to comment.