twitter-url-directv2

2.0.2 • Public • Published

twitter-url-directv2

twitter-url-directv2 is a NodeJS library for direct download links of video or photos on Twitter.

Installation

Use the package manager npm to install twitter-url-directv2.

npm i twitter-url-directv2

Usage

//ES modules
import twitterGetUrl from 'twitter-url-directv2';

(async()=>{
	try{
		const res = await twitterGetUrl("https://twitter.com/elonmusk/status/1517234911035412481?s=20&t=TzC1I0Oyt54sIBMgQif1xA");
		console.log(res);
	}catch(e){
		console.log(e);
	}
})();
//CommonJS
const twitterGetUrl = require('twitter-url-directv2');

(async()=>{
	try{
		const res = await twitterGetUrl("https://twitter.com/elonmusk/status/1517234911035412481?s=20&t=TzC1I0Oyt54sIBMgQif1xA");
		console.log(res);
	}catch(e){
		console.log(e);
	}
})();

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i twitter-url-directv2

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

7.65 kB

Total Files

4

Last publish

Collaborators

  • milad.ashjari