tweet-formatter

Format tweet text with proper html link tag link on username, hashtag, and url

Usage no npm install needed!

<script type="module">
  import tweetFormatter from 'https://cdn.skypack.dev/tweet-formatter';
</script>

README

Tweet Formatter Build Status

Format tweet text to proper html link tag on username, hashtag, and URL

Install

NPM

npm install --save tweet-formatter

Bower

bower install --save tweet-formatter

Component

component install pveyes/tweet-formatter

Example

Node.JS

var tweetFormatter = require('tweet-formatter');
var tweet = 'some tweet text with @username and #hashtag or http://url.com';

var formattedTweet = tweetFormatter(tweet);

License

MIT