The FIRST and the ONLY module to get tweet id from url !
Use npm or yarn to install this npm package
npm i get-tweet-id
- Fast
- Minimal
- Lightweight
- No Dependencies
- Support all Frameworks
- Step 1: Install the npm package
- Step 2: Import
getTweetId
in your app - Step 3: Pass Tweet url like
getTweetId("https://twitter.com/VishwaGauravIn/status/1472126167167627265")
- Result: You will get the Tweet Id in return like
1472126167167627265
import getTweetId from "get-tweet-id";
export default function Test() {
let url = "https://twitter.com/VishwaGauravIn/status/1472126167167627265"
let id = getTweetId(url)
console.log(id) // 1472126167167627265
return (
<div>
</div>
)
}