Current collected state Current
Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2ch-fetcher
2ch fetcher
2ch fetcher
npm install 2ch-fetcher
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);
This is released under MIT License
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
chardetEnvironment{
"local_name": "chardet",
"alias": false,
"peer_metadata": null
} | ^0.4.2 | runtime |
iconv-liteEnvironment{
"local_name": "iconv-lite",
"alias": false,
"peer_metadata": null
} | ^0.4.19 | runtime |
momentEnvironment{
"local_name": "moment",
"alias": false,
"peer_metadata": null
} | ^2.19.3 | runtime |
moment-timezoneEnvironment{
"local_name": "moment-timezone",
"alias": false,
"peer_metadata": null
} | ^0.5.14 | runtime |
requestEnvironment{
"local_name": "request",
"alias": false,
"peer_metadata": null
} | ^2.83.0 | runtime |
request-promise-nativeEnvironment{
"local_name": "request-promise-native",
"alias": false,
"peer_metadata": null
} | ^1.0.5 | runtime |
@types/iconv-liteEnvironment{
"local_name": "@types/iconv-lite",
"alias": false,
"peer_metadata": null
} | ^0.0.1 | development |
@types/moment-timezoneEnvironment{
"local_name": "@types/moment-timezone",
"alias": false,
"peer_metadata": null
} | ^0.5.2 | development |
@types/request-promise-nativeEnvironment{
"local_name": "@types/request-promise-native",
"alias": false,
"peer_metadata": null
} | ^1.0.10 | development |
rimrafEnvironment{
"local_name": "rimraf",
"alias": false,
"peer_metadata": null
} | ^2.6.2 | development |
tslintEnvironment{
"local_name": "tslint",
"alias": false,
"peer_metadata": null
} | ^5.8.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^2.6.2 | development |
Source distribution
{
"integrity": "sha512-0Rrt20YgYJpITAqEfhCnAX9iz/QOHhJ8Nc7t2rggZC8MAaBGZxqsO1HxUfd3U5F+LNjgDNLXHBmYOzfw002JOA==",
"shasum": "9ed943ca2d6670be7b847fba734ee50c1abef707",
"tarball": "https://registry.npmjs.org/2ch-fetcher/-/2ch-fetcher-2.1.0.tgz",
"fileCount": 29,
"unpackedSize": 25442,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIBnChN+873vcDStknfT6o2Lm/Iar4HTY7S1jBtcs9hTjAiEAoO0aqcqKJQpscwEwT76MmaBCCqwt3CmofG7lYK1n/do="
}
]
}Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:35e2296d0356bfb2ddbbb4538f06fc8bf204ad35147b4a4505254dbaa12eaa8a