/twitter-to-image

:bird: :camera: Creates images from tweets.

Primary LanguageJavaScript

Twitter to Image

Build Status Dependencies Development Dependencies JavaScript Style Guide

Creates images from tweets.

Install

npm install

Start

npm start

Use the PORT environment variable to set a custom port. Default port is 3000.

Usage

The application is able to return multiple formats which can be specified in the url. The default is png.

http://localhost:3000/statuses/:tweet_id.:format?
http://localhost:3000/:screenname/status/:tweet_id.:format?

Examples

PNG

http://localhost:3000/statuses/210462857140252672
http://localhost:3000/twitterapi/status/210462857140252672
http://localhost:3000/statuses/210462857140252672.png
http://localhost:3000/twitterapi/status/210462857140252672.png

JPEG

http://localhost:3000/statuses/210462857140252672.jpeg
http://localhost:3000//twitterapi/status/210462857140252672.jpg
http://localhost:3000/statuses/210462857140252672.jpeg
http://localhost:3000//twitterapi/status/210462857140252672.jpg

HTML

http://localhost:3000/statuses/210462857140252672.html
http://localhost:3000/twitterapi/status/210462857140252672.html

SVG

Makes use of the foreignObject element which is currently not supported by Internet Explorer.

http://localhost:3000/statuses/210462857140252672.svg
http://localhost:3000/twitterapi/status/210462857140252672.svg

Test

npm test

Development

npm run dev

License

Licensed under the MIT License.