Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bukinoshita/last-tweet

Get Twitter user's last tweet
https://github.com/bukinoshita/last-tweet

last promise tweet twitter

Last synced: 3 months ago
JSON representation

Get Twitter user's last tweet

Awesome Lists containing this project

README

        

# last-tweet [![Build Status](https://travis-ci.org/bukinoshita/last-tweet.svg?branch=master)](https://travis-ci.org/bukinoshita/last-tweet)

> Get Twitter user's last tweet

#### No Twitter API required!

## Install

```bash
$ yarn add last-tweet
```

## Usage

```js
const lastTweet = require('last-tweet')

await lastTweet('bukinoshita')
/*
{
user: 'bukinoshita',
tweet: 'awesome',
time: '9h'
}
*/
```

## API

### lastTweet(user)

#### user

Type: `string`

Required

User's username on Twitter

## License

MIT © [Bu Kinoshita](https://bukinoshita.io)