0.0.4 โ€ข Published 6 months ago

4chan-ts v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

4chan-ts

A modern and typed 4chan API wrapper written in TypeScript.

This package provides simple access to 4chan's public JSON API, supporting boards, threads, and posts with full type safety.

โœจ Features

  • ๐ŸŒ€ Supports all public endpoints of the 4chan API
  • โšก Built in TypeScript for type safety and modern dev experience
  • ๐Ÿงช Lightweight
  • ๐Ÿš€ Bun-first, Node/npm-compatible

๐Ÿ“ฆ Installation

Using Bun

bun add 4chan-ts

Using NPM

npm install 4chan-ts

Quick Start

import { FourChanClient } from "4chan-ts";


(async ()=>{
  const chan = new FourChanClient();

  const {data , error} = await chan.getBoards();
  if (error)
  {
    console.error(error);
    return ;
  }
  console.log(data); // const data: BoardList
})()
0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago