Catalog npm
Back to packageRELEASE DETAILS

1.0.73

npm

4chan-full

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

4chan4chan-fullapidatapipefullreadonlyarchiveboardeasythreadwatcher
Published17 Dec 2020
Direct dependencies2
Transitive dependenciesNot calculated

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.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
got
Environment
{
  "local_name": "got",
  "alias": false,
  "peer_metadata": null
}
^11.4.0runtime
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
^16.2.2runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-BG2TD54L/M8MFE18Vu53u8DYl14dUqvnyCWHKdy2IdQwWTQxk6hQwhH7Lui/NM9wWiMgDIhafD2C1tJekcKkRw==",
  "shasum": "e81e9aa15ba4c47668f00798cbf33fb0858816f3",
  "tarball": "https://registry.npmjs.org/4chan-full/-/4chan-full-1.0.73.tgz",
  "fileCount": 11,
  "unpackedSize": 19093,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf29QhCRA9TVsSAnZWagAAyREP/jNUoFtJT93nYtkFyp2n\nZ0wR9+XuwGk4FTJKHd7/6ptiGtnVd09C3RbtjZNHQTnA3Qks94I372DGiRPY\nu97aahue0SdaxpZh2TYMw7DoZXg3XrBv7Pkz/RgxIiDWrpVY/co8dLvdbLtF\nVJCVcRj8vXmcAnRhmf2q00hiX/Km2O8E2XXuQQLzZ3TZwA2HeKJlhwyAk9Ga\nSYUt5WQoKGrw7srPgnLvkILgE4WzHWc/iuSVIp/aKZ6TQlvUOwXnHPQDnOk0\n1K8dCsqeAKxckdzmcweiJn/tLqmr7Xx02wPcFn3t+2aRytnthp5Jxm+yo0Ky\nMs7oPW7zaYNKGazOZtA7d0oTdvKknEQJZdUUrDsLuBep9o8Ym6aB9Tz4DzVz\nGHED1e5Cyf62Xr9JK/GpzwMaVXXA4XWAkZ0VQd3yp9TA++wlMs+r5BwkY96s\neFsW/Nej9YmIbx7GFtCNY7+rz2X/mNimt2k11Ll/px9F1kyueQropmgcEaYO\nWn6mcH2/o8qTy7an0rN0IHatFpE031iZhVu5cuQCoxT1/puiCxmvcwh1zC64\nfvinHnIU27dTSBqheVoa9wthIf6ev7CARrTsY1QdAsI2nkNxmodAk3S36e7C\nwUcexlpxxqmKLT3g8WH5Q2RqN804umRNZmPZQHIZh4QhoJANwWujK0GxqccA\n4Pg3\r\n=ouoH\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCB9qa0OtwqWE64pJp1DqKaq96lomLLcQx9D8354th5TQIhAKV/y+/XoSqKNSl8HwupA3nx+fQp7ou5UkVspIPSiXz4"
    }
  ]
}

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_version:bcd53eedbc2493f5a245cd7dabb9b679944b5268b08daaf8ffdf397eea0bee2d

Other collected versions

1.2.026 May1.1.15 Jan1.1.028 Dec1.0.818 Dec1.0.7417 Dec1.0.7212 SeptView all collected versions →