open-index/open-npm huggingface dataset:
npm package: 2ch-fetcher
Description: 2ch fetcher
Author: narazaka
Latest version: 2.3.0

# 2ch-fetcher
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FNarazaka%2F2ch-fetcher.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FNarazaka%2F2ch-fetcher?ref=badge_shield)


2ch fetcher

## Install

```bash
npm install 2ch-fetcher
```

## Usage

```typescript
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](https://narazaka.net/license/MIT?2017)


[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FNarazaka%2F2ch-fetcher.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FNarazaka%2F2ch-fetcher?ref=badge_large)
npm package: 2ch-fetcher-with-proxy
Description: 2ch fetcher with proxy
Author: kako-jun
Latest version: 1.0.1

# 2ch-fetcher-with-proxy

a fork of [2ch fetcher](https://github.com/Narazaka/2ch-fetcher).

## Install

```bash
npm install 2ch-fetcher-with-proxy
```

## Usage

```typescript
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](https://narazaka.net/license/MIT?2017)
npm package: 2ch-id-generator
Description: A generator for anonymous user id like as 2ch
Author: P-Chan
Latest version: 1.0.0

# 2ch-id-generator

> A generator for anonymous user id like as 2ch

## Getting Started

```
$ npm install 2ch-id-generator
```

```javascript
const idGenerator = require('2ch-id-generator')
idGenerator() // -> bVBwT1fBg
```

## API

```javascript
const idGenerator = require('2ch-id-generator')
idGenerator(options)
```

- `options`
  - `ip` - (String) IP address of contributor. Default: `127.0.0.1`
  - `key` - (String) Unique key of bulletin board. Default: `news4vip`
  - `rand` - (String) Random character string updated every day. Default: `fusianasan`
  - `length` - (Number) Length of id. Default: `9`

## License

MIT

## Author

[@p-chan](https://github.com/p-chan)
npm package: 2ch-trip
Description: 2ch compatible trip generator
Author: P-Chan
Latest version: 4.0.0

# 2ch-trip

> 2ch compatible trip generator

## Install

```sh
npm install 2ch-trip
```

or

```sh
yarn add 2ch-trip
```

## Usage

```ts
import { createTrip } from '2ch-trip'

// 10 digits trip
createTrip('#Jim') // -> ' ◆ziib4d/boU'
createTrip('#ひろゆき') // -> ' ◆F7aSjnRHGU'

// 12 digits trip
createTrip('#N.T.Technology') // -> ' ◆FG0WWassNUrw'
createTrip('#パケットモンスター') // -> ' ◆EZSPRAHOnqfS'

// Raw key trip
createTrip('##57414b5554454b41') // -> ' ◆sWERuZlbhs'
createTrip('#$4d45534849554d41') // -> ' ◆???'
```

## Author

[@p-chan](https://github.com/p-chan)

## LICENSE

MIT
npm package: 2ch.js
Description: 2ch compatible viewer/DAT parser
Author: Shinosaki
Latest version: 0.3.1

# 2ch.js
[![npm version](https://badge.fury.io/js/2ch.js.svg)](https://badge.fury.io/js/2ch.js)

ウェブブラウザで動作する2ch互換掲示板ビューア/DATパーサー

![ScreenShot](./screenshot.png)

## Features / 機能
- タブの永続化

## ToDo
- 検索機能

## Deploy / デプロイ
```bash
## Cloudflare Workers
$ npm run deploy:worker

## Cloudflare Pages
$ npm run deploy:pages

## Bun (Generate executable file)
## https://bun.sh/docs/bundler/executables
$ npm run build:bun
$ NODE_ENV=production ./dist/run
## And open http://localhost:3000
```

## Author
[Shinosaki](https://shinosaki.com)

## UI
React & shadcn/ui

## License
[MIT](./LICENSE)
npm package: 2chhk-to-telegram-images-bot
Description: This module getting images from selected boards and find in boards threads by keywords and send images to your selected telegram recepient. When thread finded, your bot sends it to you for approve.
Author: vladislavmega@gmail.com
Latest version: 1.0.0

This module getting images from selected boards and find in boards threads by keywords and send images to your selected telegram recepient.
When thread finded, your bot sends it to you for approve.

usage:

const DvachToTlg = require('2chhk-to-telegram-images-bot');
const dvachToTlg = new DvachToTlg({
    botId: 'botid', // Bot token from BotFather
    boardDomain: 'http://2ch.hk', // board domain
    db: 'mongodb://127.0.0.1:27017/telegram', // mongo db database
    boards: { // object, where key is board and value is boards settings
        b: {
            keywords: ['засмеялся', 'тредшот'], // keywords for send to approve
        }
    },
    opId: 129424520,
    language: 'en',
});

telegramZOBot.getAllThreads().then(_.bind(telegramZOBot.actionsWithFindedThreads, telegramZOBot));
npm package: 2co-react
Description: React stateful component to connect to 2CO api and generate authorization token
Author: Matan Schatzman
Latest version: 0.1.6

# 2Checkout payment gateway and react 

React stateful component with or without credit form that connect to 2CO api and generate client token

## Getting Started

2Checkout payment gateway need a token to create and charge orders.
This package will create a token for you.

Using this token, you will need to send your order and customer info to 2Checkout to make the charge.

This can be done by [2Checkout API](https://www.2checkout.com/documentation/payment-api/create-sale) or by [2Checkout-Node](https://www.npmjs.com/package/2checkout-node).

I recommend using [2Checkout-Node](https://www.npmjs.com/package/2checkout-node) along with this package to generate token and send it to [2Checkout-Node](https://www.npmjs.com/package/2checkout-node) to create the charge.


### Installing & Usage

A step by step series of examples that tell you how to get a token:

#### Install:

```
npm i 2co-react
```
` or `
```
yarn add 2co-react
```
#### Usage: 

Importing:

```Javascript
import TCO from '2co-react';
```
This is the only component you need to add:
```Javascript
        <TCO
          sellerId="xxxxx"
          publishableKey="xxxxx"
          sandbox
          showForm
          showModal
          showLoading
          returnToken={this.returnToken}
        />
```        

#### Props Options:

| TCO Prop      | VALUE         | Effect |
| ------------- |:-------------:| -----:|
| sellerId     | selled id from 2checkout account| - |
| publishableKey     | publishable key from 2checkout account      |   - |
| sandbox | true or false   |    generate a sandbox or production token |
| showForm | true or false      |    show cedit card form |
| showModal | true or false       |    show credit card form on modal or on page |
| showLoading| true or false     |    show loading bar while waiting for response back |
| returnToken| function     |    function that will recive one argument as the token string |



## Authors

* **Matan Schatzman** - [Email](mailto:matanschatzman@gmail.com)

## License

This project is licensed under the MIT License
npm package: 2complement
Description: Go back and forth from 2's complement like a charm
Author: Planet's Lightning Arrester
Latest version: 0.1.1

# 2complement
Go back and forth from 2's complement like a charm in NodeJS

### Install
`npm i 2complement`

### Usage
```Javascript
decode = require('2complement');

console.log(decode.int2complement(32765).toString(2));
//1000000000000011

console.log(decode.complement2int(0b1000000000000011))
//-32765

console.log(decode.complement2int(decode.int2complement(-2000)));
//-2000

console.log("You rock");
//just a motivational quote. But you do <3

```

### Methods
+ ***decode.complement2int(_2complement[,nBits]):***
    + *_2complement:* Number to be converted to int
    + *nBits:* (optional) Number of bits. 16 is the default
+ ***decode.int2complement(number[,nBits]):***
    + *number:* Number to be converted to 2's complement
    + *nBits:* (optional) Number of bits. 16 is the default