@jarred/static-tweets

Utilities for fetching and manipulating tweet ASTs.

Usage no npm install needed!

<script type="module">
  import jarredStaticTweets from 'https://cdn.skypack.dev/@jarred/static-tweets';
</script>

README

React Static Tweets

static-tweets

Utilities for fetching and manipulating tweet ASTs.

NPM Build Status Prettier Code Formatting

Install

npm install static-tweets

This package is compatible with Node.js.

Usage

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.

License

MIT © Travis Fischer

Support my OSS work by following me on twitter twitter