threadsjs / threads.js

A Node.js library for the Threads API
MIT License
279 stars 29 forks source link
nodejs threads threads-api
# threads.js thread.js is a Node.js library that allows you to interact with the Threads API [![npm version](https://img.shields.io/npm/v/@threadsjs/threads.js.svg?color=green)](https://www.npmjs.com/package/@threadsjs/threads.js) [![Downloads](https://img.shields.io/npm/dm/@threadsjs/threads.js.svg)](https://www.npmjs.com/package/@threadsjs/threads.js) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/threadsjs/threads.js.svg)](http://isitmaintained.com/project/threadsjs/threads.js "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/threadsjs/threads.js.svg)](http://isitmaintained.com/project/threadsjs/threads.js "Percentage of issues still open")

FeaturesInstallation and updatingUsageMethods

Features

Installation and updating

npm install @threadsjs/threads.js

Example usage

const { Client } = require('@threadsjs/threads.js');

(async () => {
    const client = new Client({ token: 'token' });

    await client.users.get().then(user => {
        console.log(user);
    });
})();