juliancwirko:twitter-text

v0.0.1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Wrapper for Twitter Text utility

"A JavaScript utility that provides text processing routines for Tweets. (...) The library provides autolinking and extraction for URLs, usernames, lists, and hashtags."

Usage [Server]:

Meteor.twitterText.autoLink('@juliancwirko #MeteorJS lorem ipsum')

Effect:

@<a class="tweet-url username" href="https://twitter.com/juliancwirko" data-screen-name="juliancwirko" rel="nofollow">juliancwirko</a> <a href="https://twitter.com/#!/search?q=%23MeteorJS" title="#MeteorJS" class="tweet-url hashtag" rel="nofollow">#MeteorJS</a> lorem ipsum
read more: twitter-text-js