Twitter.js Guide

Twitter.js Guide

The official guide for twitter.js library

Introduction Get Started

Super Easy

Twitter.js provides an object-oriented interface by abstracting away all the boring and tedious stuff. This makes working with the Twitter API super easy and fun.

Type Safe

Twitter.js is written in TypeScript, which means it provides out of the box type safety, inline docs, and autocompletion. It also makes the library less prone to bugs.

Well Documented

We understand the value of good documentation. Twitter.js comes with a well documented API reference website for quick look ups and a guide for learning how to use the library.

import { Client } from 'twitter.js';

const client = new Client();
await client.loginWithBearerToken('bearer-token');

const user = await client.users.fetchByUsername('iShiibi');
console.log(user.description); // Contributing to open-source 🌐