# is_two_b

> Check if a string is 'bb'.

Latest version **1.0.0** (published 2017-03-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install is_two_b
pnpm add is_two_b
yarn add is_two_b
bun add is_two_b
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-03-14 |
| First published | 2017-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | PengJiyuan |
| Maintainers | pjy |

## Links

- npm: https://www.npmjs.com/package/is_two_b
- Repository: https://github.com/PengJiyuan/is_two_b
- Homepage: https://github.com/PengJiyuan/is_two_b#readme
- Issues: https://github.com/PengJiyuan/is_two_b/issues
- npm.io page: https://npm.io/package/is_two_b

## Recent versions

- 1.0.0 (latest) — 2017-03-14

## README

# is_two_b
Check if a string is 'bb'.

## Install
```bash
npm install is_two_b --save
```

## Usage
```javascript
var is2b = require('is_two_b');
is2b('bb').two_b(); // true
```

### 非严格模式
```javascript
is2b('b6s').unstrict().two_b(); // true
is2b('b6s').two_b(); // false
```

### 支持格式
```javascript
// String
is2b('bb').two_b(); // true

// Array
is2b(['b','b']).two_b(); // true
```

### 多语言输出
```javascript
// 原生输出
is2b('b6s').unstrict().log('pure').two_b(); // true
// 英语
is2b('b6s').unstrict().log('English').two_b(); // Congratulations, it's two B!
// 粤语
is2b('bs').unstrict().log('Cantonese').two_b(); // 对唔住，唔系两个b！
// 文言文
is2b('bs').unstrict().log('Classical_Chinese').two_b(); // 悲兮，非二b！
//韩语
is2b('b6s').unstrict().log('Korea').two_b(); // 축하해, 두 개의 b!
...
```

**支持多国语言（不断添加）**
* 英语 -- English
* 中文 -- Chinese
* 文言文 -- Classical_Chinese
* 中文繁体 -- Chinese_Traditional
* 粤语 -- Cantonese
* 韩语 -- Korea
* 法语 -- French
* 德语 -- German
* 日语 -- Japanese
* 意大利语 -- Italian
* 俄语 -- Russian
* 泰语 -- Thai
* 阿拉伯语 -- Arabic
* 芬兰语 -- Finnish

## [MIT](./LICENSE)

---
_Source: https://npm.io/package/is_two_b · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
