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-65+yfb0ynXyF//wQT6PFGl8fhT0WhasC2tZl1lcYUm2hGcgTaQJ6FK/wtIAkyaV5GWIT8mCT66sXKEA3AGXC4w==",
"shasum": "68b54eb3841da27888189bc7c9c553ac45f68c86",
"tarball": "https://registry.npmjs.org/2ch-fetcher/-/2ch-fetcher-2.0.0.tgz",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQC8e2MEU82biZIsRB0IH2Z1A0eXKkmqEeF8QhffIWd73QIhAIkmJWjgK77tKAk/Cyi8VNlPMpVvPZza5XCba173y2K+"
}
]
}Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:0acfea33542645ef41af4e55dbbe4681b77320a941d42de9f800d2bfce4be30b