tweet-links
v1.0.1
Published
extract links from tweet
Downloads
24
Readme
tweet-links
extract links from tweet
Install
npm install --save tweet-links
Usage
import tweetLinks from 'tweet-links';
import zero from './fixtures/zero.json';
import one from './fixtures/one.json';
import two from './fixtures/two.json';
tweetLinks(zero); // []
tweetLinks(one); // [ 'https://medium.com/the-year-of-the-looking-glass/a-managers-manifesto-be5f6b118084' ]
tweetLinks(two); // [ 'http://html5.by/blog/nwjs/', 'http://buznik.net/lifeChart/' ]
tweetLinks(); // undefined ¯\_(ツ)_/¯
API
tweetLinks(input)
input
Required
Type: Object
Tweet Object from Twitter API.
Related
- get-tweets — get latest tweets
- get-twitter-info — get info about target username
- get-twitter-followers — get followers for target username
- tweets-stats — get statistics from array of tweets
- twitter-mentions — get latest mentions for target username
- twitter-profile-media — get twitter profile image and banner
- twitter-tokens — get twitter tokens
License
MIT © Vladimir Starkov