@sthakur/static-tweets
TypeScript icon, indicating that this package has built-in type declarations

0.7.13 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @sthakur/static-tweets

Weekly Downloads

1

Version

0.7.13

License

MIT

Unpacked Size

236 kB

Total Files

33

Last publish

Collaborators

  • sthakur