npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

starbucks-jp-drink

v1.0.5

Published

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

Downloads

28

Readme

starbucks-jp-drink

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

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

インストール

npm i -g starbucks-jp-drink

サンプルプログラム

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

starbucks-jp-drink

画面収録

検索方法

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 | カテゴリーがその他のドリンク |

  1. 温度(ホットやコールドなど)に関するもの

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

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

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