Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

static-tweets

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

static-tweets

Utilities for fetching and manipulating tweet ASTs.

  • 1.0.0-alpha.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
667
decreased by-29.42%
Maintainers
1
Weekly downloads
 
Created
Source

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'

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 twitter

FAQs

Package last updated on 28 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc