2.0.0 • Published 1 year ago
static-tweets v2.0.0
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'
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
}
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
1.0.0
2 years ago
1.0.0-alpha.8
2 years ago
1.0.0-alpha.7
2 years ago
1.0.0-alpha.5
2 years ago
1.0.0-alpha.1
2 years ago
2.0.0
1 year ago
0.8.0
2 years ago
0.7.2
2 years ago
0.7.1
2 years ago
0.5.6
2 years ago
0.7.0
2 years ago
0.6.0
2 years ago
0.5.5
3 years ago
0.5.3
3 years ago
0.5.0
3 years ago
0.5.1
3 years ago
0.4.0
3 years ago
0.3.0
3 years ago
0.2.1
3 years ago
0.2.7
3 years ago
0.2.6
3 years ago
0.2.0
3 years ago