Catalog npm
Back to packageRELEASE DETAILS

2.1.0

npm

2ch-fetcher

2ch fetcher

Published26 Feb 2018
Direct dependencies12
Transitive dependenciesNot calculated

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.

Declared dependencies 12

Native requirements
12 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
chardet
Environment
{
  "local_name": "chardet",
  "alias": false,
  "peer_metadata": null
}
^0.4.2runtime
iconv-lite
Environment
{
  "local_name": "iconv-lite",
  "alias": false,
  "peer_metadata": null
}
^0.4.19runtime
moment
Environment
{
  "local_name": "moment",
  "alias": false,
  "peer_metadata": null
}
^2.19.3runtime
moment-timezone
Environment
{
  "local_name": "moment-timezone",
  "alias": false,
  "peer_metadata": null
}
^0.5.14runtime
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
^2.83.0runtime
request-promise-native
Environment
{
  "local_name": "request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.5runtime
@types/iconv-lite
Environment
{
  "local_name": "@types/iconv-lite",
  "alias": false,
  "peer_metadata": null
}
^0.0.1development
@types/moment-timezone
Environment
{
  "local_name": "@types/moment-timezone",
  "alias": false,
  "peer_metadata": null
}
^0.5.2development
@types/request-promise-native
Environment
{
  "local_name": "@types/request-promise-native",
  "alias": false,
  "peer_metadata": null
}
^1.0.10development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.6.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
^5.8.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^2.6.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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="
    }
  ]
}

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:35e2296d0356bfb2ddbbb4538f06fc8bf204ad35147b4a4505254dbaa12eaa8a

Other collected versions

2.3.024 May2.2.022 May2.1.322 May2.1.226 Feb2.1.126 Feb2.0.210 DecView all collected versions →