# tweet-reparse

> reparse Twitter API response to HTML

Latest version **0.0.1** (published 2014-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install tweet-reparse
pnpm add tweet-reparse
yarn add tweet-reparse
bun add tweet-reparse
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-03-06 |
| First published | 2014-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ryo Murayama |
| Maintainers | hitsujiwool |
| Keywords | twitter |

## Links

- npm: https://www.npmjs.com/package/tweet-reparse
- Repository: git@github.com:hitsujiwool/tweet-reparse
- Homepage: https://github.com/hitsujiwool/tweet-reparse
- Issues: https://github.com/hitsujiwool/tweet-reparse/issues
- npm.io page: https://npm.io/package/tweet-reparse

## Recent versions

- 0.0.1 (latest) — 2014-03-06

## README

# tweet-reparse

tweet-reparse attaches HTML tags to a given tweet fetched from Twitter API. Please note that it does _not_ automatically detect URL, @mention or hashtag, but just makes use of `entities` information in [Twitter API response](https://dev.twitter.com/docs/entities).

## Installation

```
$ npm install tweet-reparse
```

## Usage

```javascript
var reparse = require('tweet-reparse');
var fs = require('fs');

var tweet = JSON.parse(fs.readFileSync('JSON_tweet_data_normally_fetched_from_API'));

// by default `urls`, `hashtags` and `user_mentions` are marked up
var parseAllEntities = reparse(tweet);

// you can optionally limit the type of entities
var parseOnlyUrl = reparse(tweet, ['urls']);
```

## Outputs

### URL (urls)

```
<a href="http://hitsujiwool.net">hitsujiwool.net</a>
```

### User Mention (user_mentions)

```
<a href="https://twitter.com/hitsujiwool">@hitsujiwool</a>
```

### Hashtag (hashtags)

```
<a href="https://twitter.com/search?q=%23sheep">#sheep</a>
```

## License

MIT

---
_Source: https://npm.io/package/tweet-reparse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
