Catalog npm
Back to packageRELEASE DETAILS

0.0.2

npm

4ch

Limited 4chan API and CLI

Published12 Jan 2019
Direct dependencies3
Transitive dependenciesNot calculated

README

Current package documentation

4ch

js-standard-style

Minimal Node.js API and CLI for getting what you want out of 4chan.

Installation

yarn global add 4ch

Or if you prefer npm

npm install -g 4ch

Commands (CLI)

4ch [ls|dl|cat] [options]

DESCRIPTION
  ls -- List all active threads of a given board.
    options: [board]
    example: 4ch list g
  dl -- Download all image/gif/web files of a given thread in a board. Images are downloaded to the `process.cwd()/4ch-out/` folder.
    options: [board, thread]
    example: 4ch dl g 123456789
  cat -- Print all posts of a given thread in a board.
    options: [board, thread]
    example: 4ch cat g 123456789

Usage (API)

const {
  downloadThreadImages,
  getBoardCatalog,
  getThread } = require('4ch')

const threads = await getBoardCatalog('g')
const posts = await getThread('g', '123456789')
const images = await downloadThreadImages('g', '123456789')

Contact

@aowlsprit

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
html-to-text
Environment
{
  "local_name": "html-to-text",
  "alias": false,
  "peer_metadata": null
}
^4.0.0runtime
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.1.2runtime
standard
Environment
{
  "local_name": "standard",
  "alias": false,
  "peer_metadata": null
}
^12.0.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "0a1430c6d0c41f6d0ee736d47dbe00f8bb682000",
  "tarball": "https://registry.npmjs.org/4ch/-/4ch-0.0.2.tgz",
  "integrity": "sha512-ZbWRRHb/l1ubrXU/kWxCqSPWEB2IGc+XqsaFP80Wp173KoxDa3+YJX2Utyo34EBPdz1H7Dvvccz3PDhx2d6MXg==",
  "fileCount": 12,
  "unpackedSize": 5811,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOgOjCRA9TVsSAnZWagAAIbcQAJgDukGwkOewE+8/VQ0M\n3a48dDWB5i8f29wz/gGf9Ha+TgRFsdCdqX1NQsHl4UH4bGZuJ7UyULgKME6Q\ncsrEEhYgtslfOAvjDlzlCF/tu7kzKry074FOlRaq4WHYdSXkeleyM/mr/kNy\nBSQMh9j6i6C5FZ/ZFiCfIVv5g1hkHUVn/gF7aLkeDx1aHC5GrFpHP70v0cRN\nZ//x7VvViG/4up2mhypJnJ1Ji9VkfBDAlBDP1PHMjlsSnVgKrfjuxS3SVSzl\nLe8bH/FCpGA5gpsIKmOOc/IeI6DZNxhIFoONx00+klyLsyXlQzkEKlCJl3jn\nJ/ZQHVXrt40zkgzLwPwbQUVngi/7Uvyc/zsyr9IrgOIpuJc4ayDfYKBVrMhB\n3hlpsvGGCWru75GpQ8RwmZbL/PgrCRi2gsjZXNN7+clnSZnZ4lvjHmNrAyMw\nMZAxRBuLMo4GToPkvtBqT/LyqIApTn+FHWcfkLzQ3F0MDpbMIJYM0VdOSi2a\nSSIRAiJTpkmlhbiycdbj7baocow12kBSRwjg+mv/PXbfVKqoWPk3oqHl/79k\njmvDALl5aTPhWgqpgbZlPMoJSFG3saO2M/yaWz5BNVTQbDftAvtXhecmnGjO\nhO4Nat0ka36AUIh15jN7Z10n2nexTq2YpXjz66QEpJlkmfIoUPIfXTAgNNcB\nq2jO\r\n=gWhb\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDArAnTZFB5gLacyC7j2GFguR0TWC4pi3pt7Nrafidz3wIgH9VOfLHbQloTRjPC8IZm2dx4c0Gpz9TWTmv5VpKr4Dg="
    }
  ]
}

Repository

PENDING
aowlsprit/4ch

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:f28aed445882b64a25bdcae1acd1dc1e50acb6e2d3d22cf170b1c63931c6306f

Other collected versions

0.0.110 JanView all collected versions →