Catalog npm
PACKAGE EXPLORERView in registry

2ch-fetcher-with-proxy

npm

2ch fetcher with proxy

Versions collected2
Direct dependencies10From release 1.0.1
Last observed20 Oct, 19:09 UTC

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.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.1Registry latest28 Jan 202110
1.0.028 Jan 202110

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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