Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

2ch-fetcher-with-proxy

2ch fetcher with proxy

Published28 Jan 2021
Direct dependencies10
Transitive dependenciesNot calculated

README

Current package documentation

2ch-fetcher-with-proxy

a fork of 2ch fetcher.

Install

npm install 2ch-fetcher-with-proxy

Usage

import { BBSMenu, Thread } from "2ch-fetcher-with-proxy";

async function hierarchal() {
    const menu = new BBSMenu(); // default url is bbsmenu of 2ch.sc
    const boards = await menu.fetchBoards();
    console.log(boards.names);
    const threads = await boards.name("河川・ダム等").fetchThreads();
    console.log(threads.titles);
    console.log(threads.searchByTitle(/なんとか/).map((thread) => thread.title));
    const posts = await threads.title("なんとかスレ").fetchPosts();
    const post = posts.index(1); // 1 origin
    if (post) { // あぼーん post is undefined
        console.log(post.name);
    }
    console.log(posts.indexRange(1, 2));
}

async function single() {
    const thread = new Thread("https://example.com/foobar/dat/123456789.dat", "title", 42);
    const posts = await thread.fetchPosts();
    console.log(posts.index(1));
}

hierarchal().then(single);

License

This is released under MIT License

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 10

Native requirements
10 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
chardet
Environment
{
  "local_name": "chardet",
  "alias": false,
  "peer_metadata": null
}
^1.3.0runtime
iconv-lite
Environment
{
  "local_name": "iconv-lite",
  "alias": false,
  "peer_metadata": null
}
^0.6.2runtime
moment
Environment
{
  "local_name": "moment",
  "alias": false,
  "peer_metadata": null
}
^2.29.1runtime
moment-timezone
Environment
{
  "local_name": "moment-timezone",
  "alias": false,
  "peer_metadata": null
}
^0.5.32runtime
node-fetch-with-proxy
Environment
{
  "local_name": "node-fetch-with-proxy",
  "alias": false,
  "peer_metadata": null
}
^0.1.2runtime
@types/moment-timezone
Environment
{
  "local_name": "@types/moment-timezone",
  "alias": false,
  "peer_metadata": null
}
^0.5.30development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^14.14.22development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.7.1development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
^6.1.3development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.1.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-AjjLVVAgOVBIoQrAuO3WI9qdRqfXMmRriXvXFdl+xog9iTLcTAVwbm+gEi2kpdnjamOmdFqE6lC2R+IBqjRNdQ==",
  "shasum": "fecdc838ae1e13e3720495f6272e2116f0135066",
  "tarball": "https://registry.npmjs.org/2ch-fetcher-with-proxy/-/2ch-fetcher-with-proxy-1.0.0.tgz",
  "fileCount": 29,
  "unpackedSize": 27945,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEnnsCRA9TVsSAnZWagAAW3oP/0I6+kiHCDn/CsV15ZMR\nbnQm4VItPyxHpzgS7JFFspMNZ79wCNgydAkgIP4Mw3g0j8fdn83Y26NaSD2J\nQFw1wYdLUcYTqlPcmqJjWtqlc9XgzVZQu8i1JAqSkldb3NEXnGbEKg2ulZxk\nu2L5LkU5CwVEUNiL2pItu5QqWh+hU24CgQyMk3PZ/2QZZ3s5RlOuDvIdo5O7\n6ZK/ZQxRl4iNGaDTDYUpyg/xqZz8luZ6uidHvzdkp6vOllchQDTGkQSlpSaz\n4gwIkePLRe3i/jAkchyxozrWs2eNoWNhD5rM0s/u727r5/Lwstwwbah4lWzL\nGHz1UYDhrXw0yHSWkF40OLrCykP9BDqMKYmSYCAaOvc5yZQTbHBB+Ml29r72\n0LSfhCfI4YqP0mbWMzpxoa5vqGYCs1xqBuuKkEkEqzWg7YxSYXhlVe5rNAoC\nxOwOlZ8K+wNUcfl7Ct0sod04qgKvGIfCDDL4tn6lA2K+QGFhETnUWSOFgF16\nrb5aZxHBfxATioMmmYesNZ5Q1zHVnjcpjTjUI2qYny2Vj/LIrR0xTWXzkzXw\nSaUc2RQCZtA/H5aBBMltiw0KODN9qJfOYBhdRRPArIAF7aud8xncbYwqrGEA\n1qrj2xZVXHgdusg9xRJGivPXKiTIW+66BUrFgno/+LkNHrLcxLg8f93xn5Xg\nTzce\r\n=WBhv\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCU4GXEaw8w7dK05a5PTuSJBzH9tRsxjtzLESrTMiYlAAIhAPGp+5y40WIYjW17W2Xz2qzyj9owTSvVtKwT8+pSwUDu"
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:09 UTC

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

Record identity

package_version:ab907351ebabb1a9f2e2596378290ecdedae7c91dc5e786ca27a3c25b511e4e1

Other collected versions

1.0.128 JanView all collected versions →