Utilities for fetching and manipulating tweet ASTs.
Install
npm install static-tweets
This package is compatible with Node.js.
Usage
import [ fetchTweetAst } from 'static-tweets'
const tweetId = '1358199505280262150'
const tweetAst = await fetchTweetAst(tweetId)
}
Client-Side
This package is only meant to be used on the server. If you want to render tweets dynamically on the client-side, then you'll need to wrap this package in an API route.
Docs
See the main docs.
License
MIT © Travis Fischer
Support my OSS work by following me on twitter