static-tweets
Advanced tools
Weekly downloads
Readme
Utilities for fetching and manipulating tweet ASTs.
npm install static-tweets
This package is compatible with Node.js.
import [ fetchTweetAst } from 'static-tweets'
const tweetId = '1358199505280262150'
const tweetAst = await fetchTweetAst(tweetId)
// tweetAst is a JSON representation of this tweet's contents
// which `react-static-tweets` can use to render
}
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.
See the main docs.
MIT © Travis Fischer
Support my OSS work by following me on twitter
FAQs
Utilities for fetching and manipulating tweet ASTs.
The npm package static-tweets receives a total of 618 weekly downloads. As such, static-tweets popularity was classified as not popular.
We found that static-tweets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.