get-tweet-id
v1.0.5
Published
Get tweet id of any tweet by url! Fast and Minimal.
Downloads
14
Maintainers
Readme
get-tweet-id
The FIRST and the ONLY module to get tweet id from url !
How to Install ?
Use npm or yarn to install this npm package
npm i get-tweet-id
Features
- Fast
- Minimal
- Lightweight
- No Dependencies
- Support all Frameworks
How to use ?
- 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
Example Code :
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>
)
}