# @sthakur/static-tweets

> Utilities for fetching and manipulating tweet ASTs.

Latest version **0.7.13** (published 2022-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sthakur/static-tweets
pnpm add @sthakur/static-tweets
yarn add @sthakur/static-tweets
bun add @sthakur/static-tweets
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.13 |
| Published | 2022-05-29 |
| First published | 2022-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 10 |
| Unpacked size | 230.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Travis Fischer |
| Maintainers | sthakur |

## Links

- npm: https://www.npmjs.com/package/@sthakur/static-tweets
- Repository: https://github.com/sanjay-io/react-static-tweets
- Homepage: https://github.com/sanjay-io/react-static-tweets#readme
- Issues: https://github.com/sanjay-io/react-static-tweets/issues
- npm.io page: https://npm.io/package/@sthakur/static-tweets

## Dependencies (10)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.5
- [unified](https://npm.io/package/unified.md) ^9.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) 2.6.1
- [rehype-raw](https://npm.io/package/rehype-raw.md) ^5.0.0
- [rehype-parse](https://npm.io/package/rehype-parse.md) ^7.0.0
- [remark-parse](https://npm.io/package/remark-parse.md) ^9.0.0
- [remark-rehype](https://npm.io/package/remark-rehype.md) ^8.0.0
- [github-slugger](https://npm.io/package/github-slugger.md) ^1.3.0
- [rehype-sanitize](https://npm.io/package/rehype-sanitize.md) ^4.0.0
- [@mapbox/rehype-prism](https://npm.io/package/@mapbox/rehype-prism.md) ^0.5.0

## Recent versions

- 0.7.13 (latest) — 2022-05-29
- 0.7.12 — 2022-05-29

## README

<p align="center">
  <a href="https://react-static-tweets.vercel.app/1352687755621351425">
    <img alt="React Static Tweets" src="https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/master/example/demo.jpg" width="550">
  </a>
</p>

# static-tweets

> Utilities for fetching and manipulating tweet ASTs.

[![NPM](https://img.shields.io/npm/v/static-tweets.svg)](https://www.npmjs.com/package/static-tweets) [![Build Status](https://github.com/transitive-bullshit/react-static-tweets/actions/workflows/build.yml/badge.svg)](https://github.com/transitive-bullshit/react-static-tweets/actions/workflows/build.yml) [![Prettier Code Formatting](https://img.shields.io/badge/code_style-prettier-brightgreen.svg)](https://prettier.io)

## Install

```bash
npm install static-tweets
```

This package is compatible with Node.js.

## Usage

```ts
import [ fetchTweetAst } from 'static-tweets'
import { Tweet } from 'react-static-tweets'

const tweetId = '1358199505280262150'

async function example (tweetId) {
  const tweetAst = await fetchTweetAst(tweetId)

  // tweetAst is a JSON representation of this tweet's contents
  // which `react-static-tweets` can use to render
}
```

## Docs

See the [auto-generated docs](https://github.com/transitive-bullshit/react-static-tweets/blob/master/docs/static-tweets.md).

## License

MIT © [Travis Fischer](https://transitivebullsh.it)

Support my OSS work by <a href="https://twitter.com/transitive_bs">following me on twitter <img src="https://storage.googleapis.com/saasify-assets/twitter-logo.svg" alt="twitter" height="24px" align="center"></a>

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