/threads.js

A Node.js library for the Threads API

Primary LanguageJavaScriptMIT LicenseMIT

threads.js

thread.js is a Node.js library that allows you to interact with the Threads API

  • Object-oriented
  • Performant
  • Authenticated
  • 100% coverage

Installation

npm install @threadsjs/threads.js

Example usage

const { getToken, Client } = require('./src/index.js');

(async () => {
  const token = await getToken('username', 'password');
  const client = new Client({ token });

	await client.users.fetch('25025320').then(user => {
		console.log(user);
	});
})();