Skip to content

Commit

Permalink
docs: document new preserveSpaces API
Browse files Browse the repository at this point in the history
  • Loading branch information
omnidan committed May 15, 2023
1 parent 8972df2 commit 44800f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ emoji.has('unknown') // false

emoji.random() // { name: 'house', emoji: '🏠' }

emoji.replace('I ❤️ coffee!', 'love') // 'I love coffee!'
emoji.replace('I ❤️ coffee!', 'love', { preserveSpaces: true }) // 'I love coffee!'

emoji.search(':uni:') // [ { emoji: '🦄', name: 'unicorn' }, ... ]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-emoji",
"version": "2.0.1",
"version": "2.0.2",
"description": "Friendly emoji lookups and parsing utilities for Node.js",
"author": "Daniel Bugl <me@omnidan.net>",
"repository": {
Expand Down

0 comments on commit 44800f9

Please sign in to comment.