JSPM

tweet-formatter

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q24525F
  • License MIT

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

Package Exports

  • tweet-formatter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tweet-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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