Catalog npm
PACKAGE EXPLORERView in registry

4chan-full

npm

www.4chan.org non-official read only api. That supports cool things!

4chan4chan-fullapiarchiveboardeasyfullreadonlythreadwatcherdatapipe
Versions collected16
Direct dependencies3From release 1.2.0
Last observed20 Oct, 20:06 UTC

README

Current package documentation

4CHAN-FULL 🎉

www.4chan.org non-official read only api.


Installation

npm install 4chan-full

Possibilities

Example Codes

That small script lists all files of the thread..

const { fchf } = require("4chan-full");

(async () => {
  const thread = await fchf.thread("wg", "7694540");

  // thread.file -> Thread owner (OP) file.
  // thread.replies[?].file -> reply file.

  const files = [thread.file, ...thread.replies.map((i) => i?.file)].filter(
    (i) => i != null
  );

  console.log(files);
})();

That small script watches the thread for new replies..

const { fchf } = require("4chan-full");

(async () => {
  let watcher = fchf.threadWatcher("vg", "337012489");

  // Events: updated, nowUpdated, checked, error, #start, #stop

  watcher.on("updated", (oldThread, newThread) => {
    console.log({ oldThread, newThread });
  });

  watcher.on("notUpdated", () => {
    console.log("there is no new replies..");
  });

  watcher.on("checked", (oldThread, newThread) => {
    console.log("checked new checkInterval:", watcher.checkInterval);
  });

  watcher.start();
})();

TODO

  • Full Code REWRITE
  • Parse Message Contents (Quotes etc.)
  • Thread Update Watcher
  • Board Update Watcher

Type List

HUGE Update 1.2.0

  • Thread Watcher
  • Update Boards
  • Bug fixes

Update 1.1.1

  • Parse Message Contents
  • Add Type List To README MD

HUGE Update 1.1.0

  • Full Rewrite API
  • Update README MD

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 16

Collected releases
VersionPublishedDirect dependenciesOpen version
1.2.0Registry latest26 May 20213
1.1.15 Jan 20212
1.1.028 Dec 20202
1.0.818 Dec 20202
1.0.7417 Dec 20202
1.0.7317 Dec 20202
1.0.7212 Sept 20202
1.0.7112 Sept 20202
1.0.718 Jul 20202
1.0.618 Jul 20202
1.0.59 Jul 20202
1.0.49 Jul 20202
1.0.39 Jul 20202
1.0.28 Jul 20202
1.0.18 Jul 20202
1.0.08 Jul 20202

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
armagann/4chan-full

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b0277df41f5a4d82cbaac9671b374cfba7d8c795d1907031b51a9617058b0175