Catalog npm
PACKAGE EXPLORERView in registry

2ch-fetcher

npm

2ch fetcher

Versions collected11
Direct dependencies11From release 2.3.0
Last observed20 Oct, 19:09 UTC

README

Current package documentation

2ch-fetcher

FOSSA Status

2ch fetcher

Install

npm install 2ch-fetcher

Usage

import { BBSMenu, Thread } from "./";

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.board("河川・ダム等").fetchThreads();
    console.log(threads.titles);
    console.log(threads.searchThreads(/なんとか/).map((thread) => thread.title));
    const posts = await threads.thread("なんとかスレ").fetchPosts();
    const post = posts.post(1); // 1 origin
    if (post) { // あぼーん post is undefined
        console.log(post.name);
    }
    console.log(posts.range(1, 2));
}

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

hierarchal().then(single);

License

This is released under MIT License

FOSSA Status

Downloads & popularity

Awaiting observations

No metric observations yet

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

Versions 11

Collected releases
VersionPublishedDirect dependenciesOpen version
2.3.0Registry latest24 May 201811
2.2.022 May 201811
2.1.322 May 201811
2.1.226 Feb 201812
2.1.126 Feb 201812
2.1.026 Feb 201812
2.0.210 Dec 201712
2.0.110 Dec 201712
2.0.010 Dec 201712
1.1.010 Dec 201712
1.0.09 Dec 201712

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