@jarred/static-tweets
v0.5.8
Published
Utilities for fetching and manipulating tweet ASTs.
Downloads
4
Readme
static-tweets
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'
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