# starbucks-jp-drink

> 検索オプションを指定することで、日本のStarbucksのドリンクの検索ができるmoduleです。利用した場合のサンプルとして、現在の季節のおすすめドリンクを表示するCLIが同梱されています。

Latest version **1.0.5** (published 2022-11-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install starbucks-jp-drink
pnpm add starbucks-jp-drink
yarn add starbucks-jp-drink
bun add starbucks-jp-drink
```

Provides the command `starbucks-jp-drink`.

## 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.5 |
| Published | 2022-11-05 |
| First published | 2022-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 65 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | monyatto |
| Maintainers | monyatto |

## Links

- npm: https://www.npmjs.com/package/starbucks-jp-drink
- Repository: https://github.com/monyatto/starbucks-jp-drink
- Homepage: https://github.com/monyatto/starbucks-jp-drink#readme
- Issues: https://github.com/monyatto/starbucks-jp-drink/issues
- npm.io page: https://npm.io/package/starbucks-jp-drink

## Dependencies (65)

- [ms](https://npm.io/package/ms.md) ^2.1.2
- [ws](https://npm.io/package/ws.md) ^8.8.1
- [psl](https://npm.io/package/psl.md) ^1.9.0
- [abab](https://npm.io/package/abab.md) ^2.0.6
- [levn](https://npm.io/package/levn.md) ^0.3.0
- [tr46](https://npm.io/package/tr46.md) ^3.0.0
- [acorn](https://npm.io/package/acorn.md) ^8.8.0
- [cssom](https://npm.io/package/cssom.md) ^0.5.0
- [debug](https://npm.io/package/debug.md) ^4.3.4
- [saxes](https://npm.io/package/saxes.md) ^6.0.0
- [nwsapi](https://npm.io/package/nwsapi.md) ^2.2.2
- [parse5](https://npm.io/package/parse5.md) ^7.1.1
- [deep-is](https://npm.io/package/deep-is.md) ^0.1.4
- [esprima](https://npm.io/package/esprima.md) ^4.0.1
- [esutils](https://npm.io/package/esutils.md) ^2.0.3
- [mime-db](https://npm.io/package/mime-db.md) ^1.52.0
- [asynckit](https://npm.io/package/asynckit.md) ^0.4.0
- [cssstyle](https://npm.io/package/cssstyle.md) ^2.3.0
- [entities](https://npm.io/package/entities.md) ^4.4.0
- [punycode](https://npm.io/package/punycode.md) ^2.1.1
- [xmlchars](https://npm.io/package/xmlchars.md) ^2.2.0
- [data-urls](https://npm.io/package/data-urls.md) ^3.0.2
- [escodegen](https://npm.io/package/escodegen.md) ^2.0.0
- [form-data](https://npm.io/package/form-data.md) ^4.0.0
- [puppeteer](https://npm.io/package/puppeteer.md) ^17.1.3
- [url-parse](https://npm.io/package/url-parse.md) ^1.5.10
- [word-wrap](https://npm.io/package/word-wrap.md) ^1.2.3
- [acorn-walk](https://npm.io/package/acorn-walk.md) ^7.2.0
- [agent-base](https://npm.io/package/agent-base.md) ^6.0.2
- [decimal.js](https://npm.io/package/decimal.js.md) ^10.4.1
- [estraverse](https://npm.io/package/estraverse.md) ^5.3.0
- [fetch-blob](https://npm.io/package/fetch-blob.md) ^3.2.0
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.6.3
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.35
- [optionator](https://npm.io/package/optionator.md) ^0.8.3
- [prelude-ls](https://npm.io/package/prelude-ls.md) ^1.1.2
- [source-map](https://npm.io/package/source-map.md) ^0.6.1
- [type-check](https://npm.io/package/type-check.md) ^0.3.2
- [whatwg-url](https://npm.io/package/whatwg-url.md) ^11.0.0
- [symbol-tree](https://npm.io/package/symbol-tree.md) ^3.2.4
- [w3c-hr-time](https://npm.io/package/w3c-hr-time.md) ^1.0.2
- [domexception](https://npm.io/package/domexception.md) ^4.0.0
- [safer-buffer](https://npm.io/package/safer-buffer.md) ^2.1.2
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^4.1.2
- [universalify](https://npm.io/package/universalify.md) ^0.2.0
- [acorn-globals](https://npm.io/package/acorn-globals.md) ^6.0.0
- [requires-port](https://npm.io/package/requires-port.md) ^1.0.0
- [delayed-stream](https://npm.io/package/delayed-stream.md) ^1.0.0
- [querystringify](https://npm.io/package/querystringify.md) ^2.2.0
- [combined-stream](https://npm.io/package/combined-stream.md) ^1.0.8
- [whatwg-encoding](https://npm.io/package/whatwg-encoding.md) ^2.0.0
- [whatwg-mimetype](https://npm.io/package/whatwg-mimetype.md) ^3.0.0
- [fast-levenshtein](https://npm.io/package/fast-levenshtein.md) ^2.0.6
- [http-proxy-agent](https://npm.io/package/http-proxy-agent.md) ^5.0.0
- [formdata-polyfill](https://npm.io/package/formdata-polyfill.md) ^4.0.10
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^5.0.1
- [node-domexception](https://npm.io/package/node-domexception.md) ^1.0.0
- [w3c-xmlserializer](https://npm.io/package/w3c-xmlserializer.md) ^3.0.0
- [data-uri-to-buffer](https://npm.io/package/data-uri-to-buffer.md) ^4.0.0
- [webidl-conversions](https://npm.io/package/webidl-conversions.md) ^7.0.0
- [xml-name-validator](https://npm.io/package/xml-name-validator.md) ^4.0.0
- [web-streams-polyfill](https://npm.io/package/web-streams-polyfill.md) ^3.2.1
- [html-encoding-sniffer](https://npm.io/package/html-encoding-sniffer.md) ^3.0.0
- [browser-process-hrtime](https://npm.io/package/browser-process-hrtime.md) ^1.0.0
- [is-potential-custom-element-name](https://npm.io/package/is-potential-custom-element-name.md) ^1.0.1

## Recent versions

- 1.0.5 (latest) — 2022-11-05
- 1.0.4 — 2022-11-04
- 1.0.3 — 2022-10-11
- 1.0.2 — 2022-10-11
- 1.0.1 — 2022-10-11

## README

# starbucks-jp-drink
検索オプションを指定することで日本のStarbucksのドリンクの検索ができるmoduleです。
利用した場合のサンプルとして現在の季節のおすすめドリンクを表示するアプリが同梱されています。

※「STARBUCKS RESERVE® ROASTERY TOKYO」や「STARBUCKS Tea & Café」などの一部店舗限定メニューは検索対象外です。

## インストール
```shell
npm i -g starbucks-jp-drink
```

## サンプルプログラム
以下のコマンドでサンプルプログラム(季節のおすすめドリンクを表示するアプリ)が実行されます。

```shell
starbucks-jp-drink
```

![画面収録](https://user-images.githubusercontent.com/83024928/199905723-2bc1f69a-76c5-48aa-92d3-7f1387780e42.gif)


## 検索方法
```js
const DrinkList = require('./lib/drinkList.js')

async function main () {
  const searchOpt = ['seasonal', 'espresso'] // 検索オプションを指定する（順不同）
  const drinkList = new DrinkList(searchOpt)

  const productName = await drinkList.productName() // ドリンク名を呼び出すメソッド
  const catchcopy = await drinkList.catchcopy() // ドリンクのキャッチコピーを呼び出すメソッド
  const note = await drinkList.note() // ドリンクの詳細説明を呼び出すメソッド

  // ドリンク名、キャッチコピー、詳細説明の各項目を呼び出す
  productName.forEach((item, i) => {
    console.log(
`${productName[i]}
${catchcopy[i]}
${note[i]}`
    )
  })
}

main()

```

### 検索オプションの分類
検索オプションは計11種類あり、以下の三つの分類に分けられます。

1. 飲み物の種類に関するもの
drip, espresso, frappuccino, tea, others

2. 温度（ホットやコールドなど）に関するもの
hot, cold, selectable, frozenAndOthers

3. 季節のおすすめかレギュラーメニューかに関するもの
seasonal, regular

### 検索の仕様について
- オプションの分類が同じものを複数指定するとor検索になります。
例: 同分類であるseasonalとregularを両方選択した場合、季節のおすすめドリンクまたは季節のおすすめではないドリンクのいずれかに当てはまるもの（つまりは全ドリンク）が出力されます。

- オプションの分類が異なるものを複数指定するとand検索になります。
例: 分類が異なるdripとhotを選択した場合、ドリップコーヒーかつホットのドリンクのみが出力されます。

### それぞれのオプションの詳細
1. 飲み物の種類に関するもの

|  オプション名  |  説明  |
| ---- | ---- |
|  drip  |  カテゴリーがドリップコーヒーのドリンク  |
|  espresso  |  カテゴリーがエスプレッソのドリンク  |
|  frappuccino  |  カテゴリーがフラペチーノのドリンク  |
|  tea  |  カテゴリーがお茶のドリンク  |
|  others  |  カテゴリーがその他のドリンク  |

2. 温度（ホットやコールドなど）に関するもの

|  オプション名  |  説明  |
| ---- | ---- |
|  hot  |  ホットのみ選択可能なドリンク  |
|  cold  |  コールドのみ選択可能なドリンク  |
|  selectable  |  ホットあるいはコールドを選択可能なドリンク  |
|  frozenAndOthers  |  フローズンドリンク（フラペチーノなど）やその他のドリンク  |

3. 季節のおすすめかレギュラーメニューかに関するもの

|  オプション名  |  説明  |
| ---- | ---- |
|  seasonal  |  現在の季節のおすすめに指定されているドリンク  |
|  regular  |  季節のおすすめに指定されていないドリンク  |

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