Catalog npm
Back to packageRELEASE DETAILS

1.1.0

npm

4chan-full

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

4chan4chan-fullapidatapipefullreadonlyarchiveboardeasythreadwatcher
Published28 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-ICJWdmiR1Ym/Q8p0E977GNRqprbaLaNVdyoNG/W6w0ynTp5Mhtja86C4VXoTKIVRky+dSQBFj7QU2zF+/9kjGw==",
  "shasum": "935cb180bf1c5960bbf9d64f9fcd1eeadc91c4cd",
  "tarball": "https://registry.npmjs.org/4chan-full/-/4chan-full-1.1.0.tgz",
  "fileCount": 28,
  "unpackedSize": 22423,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6jSWCRA9TVsSAnZWagAAHdoP/0wHdzxlnZ0i9uuTERRa\nrcVZpgcnYkaHijWMEk2qvolP+o0stsonLID7vo/gRPIemlcgVaHvuifS0TC9\nI4pC5EIUu7eD4U82o1MU6qGYfxS8x2umR0w33hOD6tWWK4nlpwcm86wPl8lu\neqN4T3P8tcpNSNjU411rcydPz172XXjdNJvCv9cMfhfyL+Yad/PU8k9M/fMy\nBbtzfHehqaf8qdh0BkABJMT7tvpAQm6iM4BVmoR/HC7wfMhXRW556MKKrDDo\nYMusFKf+dndDFhaRbECWm4s33jTKx7f0hywR2IqfDNZSAtcCIqgfL9xx1PeL\nWpbofxYDdIIpVHLy5UPGb9D8QVhzY5NSF02xzwUavzJsjTkyJ1WZAhlpKby4\nuBbfYlziZSfygzC1Y8RR0vCbJDUpFDICNqQ2SI/vnLeHS/H9Oz+edgFk6U+1\nN7hRD/d7g1/YCPxqWiDTyjsCy8F/x50XY0/2EkXj/MR8CnCX59qqBFlZGpDA\n77DJk3ovQOZxH074uPf6FPoDPTNyvTOIdnhB9I+84Mn3WOBBu+LiboCHgrTL\n34Y+fpdlFbLP+0p59ryglSNUmIty8qyLM5u+JsnfB//Kuw71BzekSTqApQVt\n4CNveKHfG5HoxSFJLy/1+Q73N75xys51GKIuEbEVMPcdab/IHiWCrritgkil\n5+fH\r\n=oD/w\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDjW0fCpyRgpMoMdPcL7EZqVR5bfyfYiniTgKNEnM5wbwIgAeCtfooJq4DlkFcChm8EEe89y7MrVw4lZrC1wv7ZR/c="
    }
  ]
}

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:6115cbeb6eec7f7a16cf6bfaf406de1357bed20c16a85579f6ae7ef49cd87585

Other collected versions

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