thread.js is a Node.js library that allows you to interact with the Threads API
- Object-oriented
- Performant
- Authenticated
- 100% coverage
npm install @threadsjs/threads.js
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);
});
})();