Catalog npm
Back to packageRELEASE DETAILS

1.0.7

npm

4chan-full

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

4chan4chan-fullapidatapipefullreadonlyarchiveboardeasythreadwatcher
Published18 Jul 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-FjUZs/sUdSth1FFyv3rGIid28oZ5wxH42IewBZBOyyR2fGmzymSZuOn065jqSBEVb0+w36mvOTd2XQqTxHUkiw==",
  "shasum": "28e6930be4868c929e32705a246c2a86f872b465",
  "tarball": "https://registry.npmjs.org/4chan-full/-/4chan-full-1.0.7.tgz",
  "fileCount": 11,
  "unpackedSize": 17335,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfE1qfCRA9TVsSAnZWagAA4egQAIMP59TgDQLywMibnnXm\ntakpHGK1EXXg5tz5DnF7rOhW+BYNFvJcE+hdJr08vtXpoWMTBdCgbWZprnCz\nSyoAkF0QMg8Le9gBm6QOomHpeDjcdzzXHPB3n6ZgQ3J1zaAYVXmlfdPyB/Mr\naMyuLuMU63sOogmNDo3dUmVFmH3IHBWfw6xcRrEALdSvJs4icar0iBUeq/df\nHkVkKl1iKeefXwoTZO/UN0+VkJf2ihCcu+FOSoIhaTr91QppFXsYRsE74A2q\nIbQNbL0JTUSb5jZnLk8VCn2DmkxxpmBO0sDcigVDYL2IkVns7iBmcIdI8X5I\nKvZNS9Rc3iK0EzspbVnLHSnjwglY6MU3logce8bEdONM+3s5iaT/fRzIJ3GG\nzDxCTejYbJj2PSLq9yntro1ljxTvEoavsExisrNjO1y9AzIjvSi3f2EGIUFL\nbYyLfhLBrv42+UYxKUQi6z6KusjCgFs3SDRaLD3jjJ5SjfSrwDlajA/oxkOM\nPfm7NoiGlFlarf115sj8E2pRb4z/ryPYZRpa3qaLhT7geL52EyDii328bJND\n0pcFMcNcoKIMDk7WbDPA6HADH50bpbdZUdWJ9d4g+JnWXUYjhE/1SEG/cPn+\nZ8NGwpJVK4MDrA920/JCfzgnfh3WNcvNWtXA5xnWhrEHmgnNF7cKVQ0v/Ams\nxrqN\r\n=9qzm\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDjkJxJT36/T/qL92lDfp3ufYT4qOHq25bEQtSzlYe6qAIhAOdE15IYoMOM0zVOy96+tkKiox4zPSwTkQYODjbNXM8U"
    }
  ]
}

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:4f6d466f64a16f892ca4592e3278f0dc57551801383ef6db3eefd00705f8ea6a

Other collected versions

1.2.026 May1.1.15 Jan1.1.028 Dec1.0.818 Dec1.0.7417 Dec1.0.7317 DecView all collected versions →