Skip to content
Browse files

one more example to readme

  • Loading branch information...
1 parent 76743a1 commit da8f33506bf14edd41e88f0e8e973e8a93066572 Ville Ikonen committed Feb 15, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.md
View
14 README.md
@@ -72,7 +72,7 @@ FlowdockText.parseTags("@anyone seen this: http://www.example.com #cool", users,
[ 'cool', ':url', ':user:everyone', ':unread:1' ]
```
-Mentioning a single user
+Tagging a single user
```javascript
var users = [
@@ -84,6 +84,18 @@ FlowdockText.parseTags("@Username, what do you think?", users, me);
[ ':user:1', ':unread:1' ]
```
+Mentioning a single user
+
+```javascript
+var users = [
+ {nick: "Username", id: 1, disabled: false},
+ {nick: "Other", id: 2, disabled: false}
+];
+var me = users[1];
+FlowdockText.parseTags("Username, what do you think?", users, me);
+[ ':highlight:1', ':unread:1' ]
+```
+
## NPM
Install with: `npm install flowdock-text`

0 comments on commit da8f335

Please sign in to comment.
Something went wrong with that request. Please try again.